14class MRVIEWER_CLASS GLStaticHolder
80 static GLStaticHolder& instance_();
87 std::shared_ptr<spdlog::logger> logger_;
provides shared buffer for loading different types of data to GL memory
Definition MRRenderHelpers.h:67
ShaderType
Definition MRGLStaticHolder.h:19
static RenderObjectBuffer & getStaticGLBuffer()
Memory buffer for objects that about to be loaded to GPU, shared among different data types.
static GLuint getShaderId(ShaderType type)
Creates shader if it is not and return valid id.
static void freeAllShaders()
Free all shaders from GL.
unsigned int GLuint
Definition MRGLStaticHolder.h:17
static ShaderType getTransparentPointsShader(TransparencyMode m)
Returns the shader to render transparent points in the given mode.
static void freeShader(ShaderType type)
Free shader from GL.
static ShaderType getTransparentMeshShader(TransparencyMode m)
Returns the shader to render transparent mesh in the given mode.
static ShaderType getTransparentLinesShader(TransparencyMode m)
Returns the shader to render transparent lines in the given mode.
@ Picker
Definition MRGLStaticHolder.h:21
@ Mesh
Definition MRGLStaticHolder.h:20
@ Volume
Definition MRGLStaticHolder.h:50
@ Points
Definition MRGLStaticHolder.h:26
@ DepthPeelMesh
Definition MRGLStaticHolder.h:24
@ Count
Definition MRGLStaticHolder.h:52
@ DepthPeelPoints
Definition MRGLStaticHolder.h:28
@ LinesPicker
Definition MRGLStaticHolder.h:32
@ AlphaSortMesh
only for non corner-based mode
Definition MRGLStaticHolder.h:23
@ ViewportBorder
Definition MRGLStaticHolder.h:44
@ Labels
Definition MRGLStaticHolder.h:38
@ SimpleOverlayQuad
Definition MRGLStaticHolder.h:47
@ AdditionalQuad
special shader for old intel gpu (Intel HD 4000)
Definition MRGLStaticHolder.h:43
@ ShadowOverlayQuad
Definition MRGLStaticHolder.h:46
@ AdditionalPointsNoOffset
Definition MRGLStaticHolder.h:42
@ VolumePicker
Definition MRGLStaticHolder.h:51
@ MeshDesktopPicker
Definition MRGLStaticHolder.h:22
@ AdditionalPoints
Definition MRGLStaticHolder.h:41
@ AlphaSortLines
Definition MRGLStaticHolder.h:35
@ DepthPeelLines
Definition MRGLStaticHolder.h:36
@ DepthOverlayQuad
Definition MRGLStaticHolder.h:48
@ LinesJoint
Definition MRGLStaticHolder.h:31
@ AlphaSortPoints
Definition MRGLStaticHolder.h:27
@ AdditionalLines
Definition MRGLStaticHolder.h:40
@ LinesJointPicker
Definition MRGLStaticHolder.h:33
@ AlphaSortOverlayQuad
Definition MRGLStaticHolder.h:45
@ Lines
Definition MRGLStaticHolder.h:30
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
struct to determine transparent rendering mode
Definition MRRenderModelParameters.h:13