OGLplus (0.45.0) a C++ wrapper for OpenGL

oglplus::UniformOps< Initializer, Typechecker > Class Template Reference

Common class implementing basic uniform operations. More...

#include </home/chochlik/devel/oglplus/include/oglplus/uniform.hpp>

Public Member Functions

bool IsActive (void)
 Tests if this Uniform is initialized and can be used. More...
 
GLint Location (void) const
 Returns the location of this uniform in a program.
 
Program::ActiveVariableInfo Info (void)
 Returns a Program::ActiveVariableInfo for this uniform. More...
 

Detailed Description

template<class Initializer, class Typechecker>
class oglplus::UniformOps< Initializer, Typechecker >

Common class implementing basic uniform operations.

Note
Do not use this class directly use Uniform, ProgramUniform or one of the other derived uniform classes instead.

Member Function Documentation

template<class Initializer, class Typechecker>
Program::ActiveVariableInfo oglplus::UniformOps< Initializer, Typechecker >::Info ( void  )

Returns a Program::ActiveVariableInfo for this uniform.

Note that this is a rather inefficient operation.

template<class Initializer, class Typechecker>
bool oglplus::UniformOps< Initializer, Typechecker >::IsActive ( void  )

Tests if this Uniform is initialized and can be used.

For Uniform and ProgramUniform this function always returns true as these cannot be in uninitialized state. For LazyUniform, LazyProgramUniform, OptionalUniform, etc. this function returns true if the uniform is active and can be used for subsequent value-setting operations. If this function returns false then trying to set a value or any other operation on the uniform besides destruction throws an exception.


The documentation for this class was generated from the following file:
  • /home/chochlik/devel/oglplus/include/oglplus/uniform.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 Wed Apr 30 2014 by Doxygen (version 1.8.4).