Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
icl::qt::GLFragmentShader Class Reference

Simple wrapper class for OpenGL 2.0 Fragment Shader Programs. More...

#include <GLFragmentShader.h>

Inheritance diagram for icl::qt::GLFragmentShader:
icl::utils::Uncopyable

List of all members.

Public Member Functions

 GLFragmentShader (const std::string &vertexProgram, const std::string &fragmentProgram, bool createOnFirstActivate=true) throw (utils::ICLException)
 ~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
GLFragmentShadercopy () const
 creates a deep copy of this shader

Private Member Functions

void create ()

Private Attributes

Data * m_data

Detailed Description

Simple wrapper class for OpenGL 2.0 Fragment Shader Programs.

The GLFragmentShader class can be used to create simple fragment shader programs.


Constructor & Destructor Documentation

icl::qt::GLFragmentShader::GLFragmentShader ( const std::string &  vertexProgram,
const std::string &  fragmentProgram,
bool  createOnFirstActivate = true 
) throw (utils::ICLException)

Member Function Documentation

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

deactivates the shader

This function does not do anything, if the shader was not enabled before!

void icl::qt::GLFragmentShader::setUniform ( const std::string  var,
const float &  val 
)
void icl::qt::GLFragmentShader::setUniform ( const std::string  var,
const int &  val 
)
void icl::qt::GLFragmentShader::setUniform ( const std::string  var,
const math::FixedMatrix< float, 4, 4 > &  val 
)
void icl::qt::GLFragmentShader::setUniform ( const std::string  var,
const std::vector< math::FixedMatrix< float, 4, 4 > > &  val 
)
void icl::qt::GLFragmentShader::setUniform ( const std::string  var,
const math::FixedColVector< float, 4 > &  val 
)

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines