Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
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

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 More...
 
GLFragmentShadercopy () const
 creates a deep copy of this shader More...
 

Private Member Functions

void create ()
 

Private Attributes

Data * m_data
 

Additional Inherited Members

- Protected Member Functions inherited from icl::utils::Uncopyable
 Uncopyable ()
 Empty base constructor. More...
 

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
)
icl::qt::GLFragmentShader::~GLFragmentShader ( )

Member Function Documentation

void icl::qt::GLFragmentShader::activate ( )
GLFragmentShader* icl::qt::GLFragmentShader::copy ( ) const

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

void icl::qt::GLFragmentShader::create ( )
private
void icl::qt::GLFragmentShader::deactivate ( )

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

Data* icl::qt::GLFragmentShader::m_data
private

The documentation for this class was generated from the following file: