Shader program manager class header file. More...
#include <map>
Go to the source code of this file.
Classes | |
class | VR3ShaderManager |
The shader managing static class. More... | |
struct | VR3ShaderManager::UniformArray |
Structure identifying an array of uniforms associated to a standard rendering program. More... | |
struct | VR3ShaderManager::BgUniformArray |
Structure identifying an array of uniforms associated to a background rendering program. More... | |
Typedefs | |
typedef void(* | f_prepareshader )(GLuint program, std::string &vs, std::string &gs, std::string &fs, std::string &es, const std::string *&ss) |
Standard shader preparation function typedef. | |
typedef void(* | f_uniformloc )(GLuint) |
Standard uniform location discovery functions. |
Shader program manager class header file.
This header file contains the VR3ShaderManager class declaration. This class may be only used statically and provides the functionalities necessary to build and use different shading programs depending on the desired rendering features (determined by the mesh properties).
Definition in file VR3ShaderManager.h.
typedef void(* f_prepareshader)(GLuint program, std::string &vs, std::string &gs, std::string &fs, std::string &es, const std::string *&ss) |
Standard shader preparation function typedef.
A shader preparation function is identified by the following type, it takes as parameters a set of source code string, filled by the shader preparation function with the source code for the single shader program components.
Definition at line 35 of file VR3ShaderManager.h.
typedef void(* f_uniformloc)(GLuint) |
Standard uniform location discovery functions.
When a standard shader has been compiled and linked, the locations assigned to the uniform variables in the shader must be queried. This is done via one function of the following type.
Definition at line 44 of file VR3ShaderManager.h.