Class wrapping program pipeline functions (with direct state access) More...
#include </home/chochlik/devel/oglplus/include/oglplus/program_pipeline.hpp>
Classes | |
struct | Properties |
Types related to ProgramPipeline. More... | |
Public Member Functions | |
ProgPLUseStages | UseStages (ProgramName program) const |
Specifies program stages by calling functions of the returned object. More... | |
void | UseStages (Bitfield< ProgramPipelineStage > stages, ProgramName program) const |
Use the specified stages of the program . More... | |
String | GetInfoLog (void) const |
Returns the validation process output. More... | |
bool | IsValid (void) const |
Returns true if the pipeline is validated, false otherwise. More... | |
void | Validate (void) const |
Validates this program pipeline. More... | |
void | ActiveShaderProgram (ProgramName program) const |
Make the program active for this program pipeline. More... | |
ProgramName | ActiveShaderProgram (void) const |
Returns the current active shader program. More... | |
bool | HasShader (ShaderType shader_type) const |
Returns true if this pipeline contains a shader of a particular type. More... | |
ProgramName | ShaderProgram (ShaderType shader_type) const |
Returns the program from which the shader_type is used. More... | |
void | Bind (void) const |
Binds this program pipeline object. More... | |
Static Public Member Functions | |
static void | Bind (ProgramPipelineName pipeline) |
Binds the specified vertex_array object. More... | |
static ProgramPipelineName | Binding (void) |
Returns the currently bound ProgramPipeline. More... | |
Class wrapping program pipeline functions (with direct state access)
void oglplus::ObjectOps< tag::DirectState, tag::ProgramPipeline >::ActiveShaderProgram | ( | ProgramName | program | ) | const |
Make the program
active for this program pipeline.
References oglplus::GetGLName().
ProgramName oglplus::ObjectOps< tag::DirectState, tag::ProgramPipeline >::ActiveShaderProgram | ( | void | ) | const |
Returns the current active shader program.
GL_ACTIVE_PROGRAM
|
staticinherited |
Binds the specified vertex_array
object.
References oglplus::GetGLName().
|
inherited |
Binds this program pipeline object.
|
staticinherited |
Returns the currently bound ProgramPipeline.
String oglplus::ObjectOps< tag::DirectState, tag::ProgramPipeline >::GetInfoLog | ( | void | ) | const |
Returns the validation process output.
bool oglplus::ObjectOps< tag::DirectState, tag::ProgramPipeline >::HasShader | ( | ShaderType | shader_type | ) | const |
Returns true if this pipeline contains a shader of a particular type.
bool oglplus::ObjectOps< tag::DirectState, tag::ProgramPipeline >::IsValid | ( | void | ) | const |
Returns true if the pipeline is validated, false otherwise.
ProgramName oglplus::ObjectOps< tag::DirectState, tag::ProgramPipeline >::ShaderProgram | ( | ShaderType | shader_type | ) | const |
Returns the program from which the shader_type
is used.
ProgPLUseStages oglplus::ObjectOps< tag::DirectState, tag::ProgramPipeline >::UseStages | ( | ProgramName | program | ) | const |
Specifies program stages by calling functions of the returned object.
This function returns an object that allows to specify which stages of program
should by used when this pipeline is active by calling the Vertex(), TessControl(), TessEvaluation(), Geometry(), Fragment() and All() member functions of the object returned by UseStages.
example:
Error |
References oglplus::GetGLName().
void oglplus::ObjectOps< tag::DirectState, tag::ProgramPipeline >::UseStages | ( | Bitfield< ProgramPipelineStage > | stages, |
ProgramName | program | ||
) | const |
Use the specified stages
of the program
.
References oglplus::GetGLName().
void oglplus::ObjectOps< tag::DirectState, tag::ProgramPipeline >::Validate | ( | void | ) | const |
Validates this program pipeline.
Error | ValidationError |