Simple wrapper class for OpenGL 2.0 Fragment Shader Programs.
More...
#include <GLFragmentShader.h>
|
| | GLFragmentShader (const std::string &vertexProgram, const std::string &fragmentProgram, bool createOnFirstActivate=true) |
| |
| | ~GLFragmentShader () |
| |
| void | setUniform (const std::string var, const float &val) |
| |
| void | setUniform (const std::string var, const int &val) |
| |
| void | setUniform (const std::string var, const math::FixedMatrix< float, 4, 4 > &val) |
| |
| void | setUniform (const std::string var, const std::vector< math::FixedMatrix< float, 4, 4 > > &val) |
| |
| void | setUniform (const std::string var, const math::FixedColVector< float, 4 > &val) |
| |
| void | activate () |
| |
| void | deactivate () |
| | deactivates the shader More...
|
| |
| GLFragmentShader * | copy () const |
| | creates a deep copy of this shader More...
|
| |
Simple wrapper class for OpenGL 2.0 Fragment Shader Programs.
The GLFragmentShader class can be used to create simple fragment shader programs.
◆ GLFragmentShader()
| icl::qt::GLFragmentShader::GLFragmentShader |
( |
const std::string & |
vertexProgram, |
|
|
const std::string & |
fragmentProgram, |
|
|
bool |
createOnFirstActivate = true |
|
) |
| |
◆ ~GLFragmentShader()
| icl::qt::GLFragmentShader::~GLFragmentShader |
( |
| ) |
|
◆ activate()
| void icl::qt::GLFragmentShader::activate |
( |
| ) |
|
◆ copy()
creates a deep copy of this shader
The resulting copy does only use this instance's program string and is other than this independent. The copy is created in createOnFirstActivate mode
◆ create()
| void icl::qt::GLFragmentShader::create |
( |
| ) |
|
|
private |
◆ deactivate()
| void icl::qt::GLFragmentShader::deactivate |
( |
| ) |
|
deactivates the shader
This function does not do anything, if the shader was not enabled before!
◆ setUniform() [1/5]
| void icl::qt::GLFragmentShader::setUniform |
( |
const std::string |
var, |
|
|
const float & |
val |
|
) |
| |
◆ setUniform() [2/5]
| void icl::qt::GLFragmentShader::setUniform |
( |
const std::string |
var, |
|
|
const int & |
val |
|
) |
| |
◆ setUniform() [3/5]
| void icl::qt::GLFragmentShader::setUniform |
( |
const std::string |
var, |
|
|
const math::FixedMatrix< float, 4, 4 > & |
val |
|
) |
| |
◆ setUniform() [4/5]
| void icl::qt::GLFragmentShader::setUniform |
( |
const std::string |
var, |
|
|
const std::vector< math::FixedMatrix< float, 4, 4 > > & |
val |
|
) |
| |
◆ setUniform() [5/5]
| void icl::qt::GLFragmentShader::setUniform |
( |
const std::string |
var, |
|
|
const math::FixedColVector< float, 4 > & |
val |
|
) |
| |
◆ m_data
| Data* icl::qt::GLFragmentShader::m_data |
|
private |
The documentation for this class was generated from the following file: