31 "Error in SLGLProgramManager: shader path is empty!");
34 "ColorAttribute.vert",
43 "TextureOnlyExternal.vert",
44 "TextureOnlyExternal.frag");
56 "ColorUniformPoint.vert",
71 string vertShaderFilename,
72 string fragShaderFilename)
SLStdShaderProg
Enumeration for standard shader programs.
Generic Shader Program class inherited from SLGLProgram.
Encapsulation of an OpenGL shader program object.
void addUniform1f(SLGLUniform1f *u)
add float uniform
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 std::map< SLStdShaderProg, SLGLProgramGeneric * > _programs
Instantiated programs.
static void deletePrograms()
Delete all instantiated programs.
static void loadPrograms()
Instantiate and load all programs.