10 #ifndef SLGLPROGRAM_MANAGER_H
11 #define SLGLPROGRAM_MANAGER_H
72 string vertShaderFilename,
73 string fragShaderFilename);
76 static std::map<SLStdShaderProg, SLGLProgramGeneric*>
_programs;
SLStdShaderProg
Enumeration for standard shader programs.
Generic Shader Program class inherited from SLGLProgram.
Encapsulation of an OpenGL shader program object.
Static container for standard shader programs.
static string configPath
Contains the global writable configuration path.
static void init(string shaderPath, string configPath)
Init by providing path to standard shader files.
static string shaderPath
Contains the global shader path.
static SLGLProgramGeneric * loadProgram(SLStdShaderProg id, string vertShaderFilename, string fragShaderFilename)
Make a new program and insert it into _programs.
static size_t size()
Returns the size of the program map.
static std::map< SLStdShaderProg, SLGLProgramGeneric * > _programs
Instantiated programs.
static void deletePrograms()
Delete all instantiated programs.
static void loadPrograms()
Instantiate and load all programs.
static SLGLProgramGeneric * get(SLStdShaderProg id)
Get program reference for given id.