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.
 

Detailed Description

This class holds all shaders that are used in the program creates shader on access if it is needed holds shared memory buffer for loading to GPU


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