SLProject 4.0.000
|
Static container for standard shader programs. More...
#include <SLGLProgramManager.h>
Static Public Member Functions | |
static void | init (string shaderPath, string configPath) |
Init by providing path to standard shader files. More... | |
static SLGLProgramGeneric * | get (SLStdShaderProg id) |
Get program reference for given id. More... | |
static void | deletePrograms () |
Delete all instantiated programs. More... | |
static size_t | size () |
Returns the size of the program map. More... | |
Static Public Attributes | |
static string | shaderPath |
Contains the global shader path. More... | |
static string | configPath |
Contains the global writable configuration path;. More... | |
Static Private Member Functions | |
static void | makeProgram (SLStdShaderProg id) |
Make a program if it is not contained in _programs. More... | |
Static Private Attributes | |
static std::map< SLStdShaderProg, SLGLProgramGeneric * > | _programs |
Instantiated programs. More... | |
Static container for standard shader programs.
Static container for standard shader programs that are not deleted after scene deallocation. The shader program allocation and compilation will be done at the first use. ONLY shader programs that are scene independent should be stored here. Shader programs that depend e.g. on the number of lights must be created at scene loading time and deallocation at scene destruction.
|
static |
Delete all instantiated programs.
|
static |
Get program reference for given id.
|
static |
Init by providing path to standard shader files.
shdrPath | Path to the shader files |
confPath | Path to the writable config directory |
|
staticprivate |
Make a program if it is not contained in _programs.
|
inlinestatic |
Returns the size of the program map.
|
staticprivate |
Instantiated programs.
|
static |
Contains the global writable configuration path;.
|
static |
Contains the global shader path.