12 #ifndef SLGLPROGRAMMGENERIC_H
13 #define SLGLPROGRAMMGENERIC_H
37 :
SLGLProgram(am, vertShaderFile, fragShaderFile) { ; }
44 :
SLGLProgram(am, vertShaderFile, fragShaderFile, geomShaderFile) { ; }
vector< SLLight * > SLVLight
STL vector of light pointers.
Toplevel holder of the assets meshes, materials, textures and shaders.
Active or visible camera node class.
Generic Shader Program class inherited from SLGLProgram.
void beginShader(SLCamera *cam, SLMaterial *mat, SLVLight *lights) override
starter for derived classes
~SLGLProgramGeneric() override=default
SLGLProgramGeneric(SLAssetManager *am, const SLstring &vertShaderFile, const SLstring &fragShaderFile)
If s is not NULL, ownership of SLGLProgram is given to SLScene (automatic deletion)
void endShader() override
SLGLProgramGeneric(SLAssetManager *am, const SLstring &vertShaderFile, const SLstring &fragShaderFile, const SLstring &geomShaderFile)
If s is not NULL, ownership of SLGLProgram is given to SLScene (automatic deletion)
Encapsulation of an OpenGL shader program object.
void beginUse(SLCamera *cam, SLMaterial *mat, SLVLight *lights)
void endUse()
SLGLProgram::endUse stops the shader program.
Defines a standard CG material with textures and a shader program.