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 . | |
ProgVarLoc & | Assign (ProgVarLoc that) |
Copy assignment. | |
ProgVarLoc & | BindTo (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. | |
Wrapper encapsulating program variable location/index.