OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::ProgVarGetSetOps< OpsTag, tag::Uniform, T > Class Template Reference

Encapsulates uniform value setting functionality. More...

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

Inherits oglplus::ProgVarCommonOps< VarTag >, and oglplus::ProgVarBaseSetOps< OpsTag, VarTag, TypTag, T, M >.

Public Member Functions

void SetValue (T value)
 Set the value of the uniform. More...
 
void SetValues (std::size_t n, const T *values)
 Set multiple consecutive values.
 
ProgVarLocAssign (ProgVarLoc that)
 Copy assignment.
 
ProgVarLocBindTo (StrCRef identifier, bool is_active=true)
 Late initialization of the variable location from its identifier.
 
ProgramName Program (void) const
 The program the variable belongs to.
 
GLint Location (void) const
 Returns the location of the variable.
 
bool IsActive (void) const
 Returns true if the variable is active.
 
OGLPLUS_EXPLICIT operator bool (void) const
 Returns true if the variable is active.
 

Detailed Description

template<typename OpsTag, typename T>
class oglplus::ProgVarGetSetOps< OpsTag, tag::Uniform, T >

Encapsulates uniform value setting functionality.

Member Function Documentation

template<typename OpsTag , typename T >
void oglplus::ProgVarGetSetOps< OpsTag, tag::Uniform, T >::SetValue ( T  value)

Set the value of the uniform.

Related OpenGL symbols:
glUniform glProgramUniform

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 Mon Sep 22 2014 by Doxygen (version 1.8.6).