MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::GLStaticHolder Class Reference

#include <MRGLStaticHolder.h>

Public Types

enum  ShaderType {
  Mesh , Picker , MeshDesktopPicker , AlphaSortMesh ,
  DepthPeelMesh , Points , AlphaSortPoints , DepthPeelPoints ,
  Lines , LinesJoint , LinesPicker , LinesJointPicker ,
  AlphaSortLines , DepthPeelLines , Labels , AdditionalLines ,
  AdditionalPoints , AdditionalPointsNoOffset , AdditionalQuad , ViewportBorder ,
  AlphaSortOverlayQuad , ShadowOverlayQuad , SimpleOverlayQuad , DepthOverlayQuad ,
  Volume , VolumePicker , Count
}
 
typedef unsigned int GLuint
 

Static Public Member Functions

static MRVIEWER_API GLuint getShaderId (ShaderType type)
 Creates shader if it is not and return valid id.
 
static MRVIEWER_API void freeShader (ShaderType type)
 Free shader from GL.
 
static MRVIEWER_API void freeAllShaders ()
 Free all shaders from GL.
 
static MRVIEWER_API RenderObjectBuffergetStaticGLBuffer ()
 Memory buffer for objects that about to be loaded to GPU, shared among different data types.
 
static MRVIEWER_API ShaderType getTransparentPointsShader (TransparencyMode m)
 Returns the shader to render transparent points in the given mode.
 
static MRVIEWER_API ShaderType getTransparentLinesShader (TransparencyMode m)
 Returns the shader to render transparent lines in the given mode.
 
static MRVIEWER_API ShaderType getTransparentMeshShader (TransparencyMode m)
 Returns the shader to render transparent mesh in the given mode.
 

Member Typedef Documentation

◆ GLuint

typedef unsigned int MR::GLStaticHolder::GLuint

Member Enumeration Documentation

◆ ShaderType

Enumerator
Mesh 
Picker 
MeshDesktopPicker 
AlphaSortMesh 
DepthPeelMesh 
Points 
AlphaSortPoints 
DepthPeelPoints 
Lines 
LinesJoint 
LinesPicker 
LinesJointPicker 
AlphaSortLines 
DepthPeelLines 
Labels 
AdditionalLines 
AdditionalPoints 
AdditionalPointsNoOffset 
AdditionalQuad 
ViewportBorder 
AlphaSortOverlayQuad 
ShadowOverlayQuad 
SimpleOverlayQuad 
DepthOverlayQuad 
Volume 
VolumePicker 
Count 

Member Function Documentation

◆ freeAllShaders()

static MRVIEWER_API void MR::GLStaticHolder::freeAllShaders ( )
static

Free all shaders from GL.

◆ freeShader()

static MRVIEWER_API void MR::GLStaticHolder::freeShader ( ShaderType type)
static

Free shader from GL.

◆ getShaderId()

static MRVIEWER_API GLuint MR::GLStaticHolder::getShaderId ( ShaderType type)
static

Creates shader if it is not and return valid id.

◆ getStaticGLBuffer()

static MRVIEWER_API RenderObjectBuffer & MR::GLStaticHolder::getStaticGLBuffer ( )
static

Memory buffer for objects that about to be loaded to GPU, shared among different data types.

◆ getTransparentLinesShader()

static MRVIEWER_API ShaderType MR::GLStaticHolder::getTransparentLinesShader ( TransparencyMode m)
static

Returns the shader to render transparent lines in the given mode.

◆ getTransparentMeshShader()

static MRVIEWER_API ShaderType MR::GLStaticHolder::getTransparentMeshShader ( TransparencyMode m)
static

Returns the shader to render transparent mesh in the given mode.

◆ getTransparentPointsShader()

static MRVIEWER_API ShaderType MR::GLStaticHolder::getTransparentPointsShader ( TransparencyMode m)
static

Returns the shader to render transparent points in the given mode.


The documentation for this class was generated from the following file: