OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::QuickProgram Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

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.


The documentation for this class was generated from the following file:
  • /home/chochlik/devel/oglplus/include/oglplus/program.hpp

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).