OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::ProgVarLoc< VarTag > Class Template Reference

Wrapper encapsulating program variable location/index. More...

#include </home/chochlik/devel/oglplus/include/oglplus/prog_var/location.hpp>

Inherits oglplus::ProgVarLocOps< VarTag >.

Inherited by oglplus::ProgVarCommonOps< VarTag >.

Public Member Functions

 ProgVarLoc (void)
 Default construction.
 
 ProgVarLoc (ProgramName program)
 Creates variable without specific location in specified program.
 
OGLPLUS_EXPLICIT ProgVarLoc (GLint location)
 Creates variable with specified location without specific program.
 
 ProgVarLoc (ProgramName program, GLint location)
 Creates variable with specified location in specified program.
 
 ProgVarLoc (ProgramName program, StrCRef identifier)
 Creates variable with specified identifier in specified program.
 
 ProgVarLoc (ProgramName program, StrCRef identifier, bool active_only)
 Creates variable with specified identifier in specified program.
 
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.
 

Friends

GLint GetGLLocation (ProgVarLoc)
 Returns the GL location/index of the specified variable.
 
bool operator== (ProgVarLoc a, ProgVarLoc b)
 Equality comparison.
 
bool operator!= (ProgVarLoc a, ProgVarLoc b)
 Inequality comparison.
 
bool operator< (ProgVarLoc a, ProgVarLoc b)
 Ordering.
 

Detailed Description

template<typename VarTag>
class oglplus::ProgVarLoc< VarTag >

Wrapper encapsulating program variable location/index.


The documentation for this class was generated from the following files:
  • /home/chochlik/devel/oglplus/include/oglplus/fwd.hpp
  • /home/chochlik/devel/oglplus/include/oglplus/prog_var/location.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).