A class that allows to build programs in the constructor. More...
#include </home/chochlik/devel/oglplus/include/oglplus/program.hpp>
Inherits oglplus::Object< ObjectOps >.
Inherited by oglplus::BallProgram, oglplus::ClothProgram, oglplus::GeometryProgram, oglplus::LightmapProgram, and oglplus::VertexProgram.
Public Member Functions | |
QuickProgram (const Sequence< ShaderName > &shaders) | |
Attaches shaders , links and uses the program. | |
QuickProgram (ObjectDesc &&object_desc, const Sequence< ShaderName > &shaders) | |
Attaches shaders , links, uses and describes the program. | |
QuickProgram (bool separable, const Sequence< ShaderName > &shaders) | |
Attaches shaders , makes separable, links and uses the program. More... | |
QuickProgram (ObjectDesc &&object_desc, bool separable, const Sequence< ShaderName > &shaders) | |
Attaches shaders , makes separable, links and uses the program. More... | |
A class that allows to build programs in the constructor.
This class allows to supply a list of shaders and other parameters to the constructor. The shaders are attached to the Program and it is linked and made active. Optionally the program can also be made separable.
oglplus::QuickProgram::QuickProgram | ( | bool | separable, |
const Sequence< ShaderName > & | shaders | ||
) |
Attaches shaders
, makes separable, links and uses the program.
Requires OpenGL 4.1 or the GL_ARB_separate_shader_objects extension.
References oglplus::Use.
oglplus::QuickProgram::QuickProgram | ( | ObjectDesc && | object_desc, |
bool | separable, | ||
const Sequence< ShaderName > & | shaders | ||
) |
Attaches shaders
, makes separable, links and uses the program.
Requires OpenGL 4.1 or the GL_ARB_separate_shader_objects extension.
References oglplus::Use.