ProgramPipeline operations wrapper class. More...
#include </home/chochlik/devel/oglplus/include/oglplus/program_pipeline.hpp>
Classes | |
struct | Properties |
Types related to ProgramPipeline. More... | |
Public Member Functions | |
void | Bind (void) const |
Bind this program pipeline. More... | |
aux::ProgPLUseStages | UseStages (const ProgramOps &program) const |
Specifies program stages by calling functions of the returned object. More... | |
void | UseStages (Bitfield< ProgramPipelineStage > stages, const ProgramOps &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 (const ProgramOps &program) const |
Make the program active for this program pipeline. More... | |
Managed< ProgramOps > | 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... | |
Managed< ProgramOps > | ShaderProgram (ShaderType shader_type) const |
Returns the program from which the shader_type is used. More... | |
Static Public Member Functions | |
static void | Unbind (void) |
Unbinds the current program pipeline object (if any) More... | |
ProgramPipeline operations wrapper class.
This class implements OpenGL program pipeline operations.
ProgramPipeline
instead.Requires OpenGL 4.1 or the GL_ARB_separate_shader_objects extension.
void oglplus::ProgramPipelineOps::ActiveShaderProgram | ( | const ProgramOps & | program) | const |
Make the program
active for this program pipeline.
References ActiveShaderProgram(), and OGLPLUS_CHECK.
Managed<ProgramOps> oglplus::ProgramPipelineOps::ActiveShaderProgram | ( | void | ) | const |
Returns the current active shader program.
GL_ACTIVE_PROGRAM
Referenced by ActiveShaderProgram().
void oglplus::ProgramPipelineOps::Bind | ( | void | ) | const |
Bind this program pipeline.
String oglplus::ProgramPipelineOps::GetInfoLog | ( | void | ) | const |
Returns the validation process output.
bool oglplus::ProgramPipelineOps::HasShader | ( | ShaderType | shader_type) | const |
Returns true if this pipeline contains a shader of a particular type.
bool oglplus::ProgramPipelineOps::IsValid | ( | void | ) | const |
Returns true if the pipeline is validated, false otherwise.
Referenced by Validate().
Managed<ProgramOps> oglplus::ProgramPipelineOps::ShaderProgram | ( | ShaderType | shader_type) | const |
Returns the program from which the shader_type
is used.
|
static |
Unbinds the current program pipeline object (if any)
References OGLPLUS_VERIFY.
aux::ProgPLUseStages oglplus::ProgramPipelineOps::UseStages | ( | const ProgramOps & | 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 |
void oglplus::ProgramPipelineOps::UseStages | ( | Bitfield< ProgramPipelineStage > | stages, |
const ProgramOps & | program | ||
) | const |
Use the specified stages
of the program
.
References OGLPLUS_CHECK.
void oglplus::ProgramPipelineOps::Validate | ( | void | ) | const |
Validates this program pipeline.
Error | ValidationError |
References IsValid(), OGLPLUS_IS_ERROR, and OGLPLUS_VERIFY.