SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
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 | loadPrograms () |
Instantiate and load all programs. 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 SLGLProgramGeneric * | loadProgram (SLStdShaderProg id, string vertShaderFilename, string fragShaderFilename) |
Make a new program and insert it into _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.
Definition at line 45 of file SLGLProgramManager.h.
|
static |
Delete all instantiated programs.
Definition at line 63 of file SLGLProgramManager.cpp.
|
inlinestatic |
|
static |
Init by providing path to standard shader files.
shdrPath | Path to the shader files |
confPath | Path to the writable config directory |
Definition at line 22 of file SLGLProgramManager.cpp.
|
staticprivate |
Make a new program and insert it into _programs.
Definition at line 70 of file SLGLProgramManager.cpp.
|
static |
Instantiate and load all programs.
Definition at line 28 of file SLGLProgramManager.cpp.
|
inlinestatic |
|
staticprivate |
Instantiated programs.
Definition at line 76 of file SLGLProgramManager.h.
|
static |
Contains the global writable configuration path.
Definition at line 67 of file SLGLProgramManager.h.
|
static |
Contains the global shader path.
Definition at line 64 of file SLGLProgramManager.h.