Molecule Visualizer
 All Classes Namespaces Files Functions Enumerations Enumerator Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
ShaderManager Class Reference

Public Types

enum  ShaderType { STANDARD, DEPTH_MAP, AMBIENT_OCCL, COUNT }
 

Public Member Functions

 ~ShaderManager ()
 Destructor.
 
void Init ()
 A member function to initialize the ShaderManager. More...
 
ShaderGetShader (ShaderType shaderType)
 A member function to get a pointer to a shader by specifying the desired shader as enum parameter. More...
 
GLuint GetShaderProgramId (ShaderType shaderType)
 A member function to get the ID of a shader. More...
 

Static Public Member Functions

static ShaderManagerGetInstance ()
 

Member Enumeration Documentation

Enumerator
STANDARD 

Use the standard shader.

DEPTH_MAP 

Use a shader to render to a depth map.

AMBIENT_OCCL 

Use the ambient occlusion shader.

COUNT 

Helper element to be able to count the size of the enum ShaderType.

Member Function Documentation

Shader * ShaderManager::GetShader ( ShaderType  shaderType)

A member function to get a pointer to a shader by specifying the desired shader as enum parameter.

Parameters
shaderTypea ShaderManager::ShaderType enum.
Returns
a pointer to a shader.
GLuint ShaderManager::GetShaderProgramId ( ShaderType  shaderType)

A member function to get the ID of a shader.

Parameters
shaderTypea ShaderManager::ShaderType enum.
Returns
the ID as a GLuint.
void ShaderManager::Init ( )

A member function to initialize the ShaderManager.

A member function to get a pointer to the static ShaderManager.

Returns
void.
a pointer to ShaderManager.

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