| Geogram Version 1.9.7
    A programming library of geometric algorithms | 
A GLUP state variable of a given type. More...
#include <geogram_gfx/GLUP/GLUP_context.h>
 
  
| Public Member Functions | |
| StateVariable () | |
| StateVariable default constructor. | |
| StateVariable (Context *context, const char *name, T value) | |
| StateVariableBase constructor. | |
| void | initialize (Context *context, const char *name, T value) | 
| Initializes a StateVariable. | |
| T | get () const | 
| Gets the value. | |
| void | set (T val) | 
| Sets the value. | |
|  Public Member Functions inherited from GLUP::StateVariableBase | |
| StateVariableBase () | |
| StateVariableBase default constructor. | |
| StateVariableBase (Context *context, const char *name) | |
| StateVariableBase constructor. | |
| void | initialize (Context *context, const char *name) | 
| Initializes a StateVariableBase. | |
| const std::string & | name () const | 
| Gets the name of this StateVariableBase. | |
| Additional Inherited Members | |
|  Protected Member Functions inherited from GLUP::StateVariableBase | |
| Memory::pointer | address () const | 
| Gets the address of the StateVariableBase. | |
| void | flag_uniform_buffer_as_dirty () | 
| Indicates that the variables in the context need to be sent to OpenGL. | |
|  Protected Attributes inherited from GLUP::StateVariableBase | |
| Memory::pointer | address_ | 
| Context * | context_ | 
| std::string | name_ | 
A GLUP state variable of a given type.
| T | the type of the state variable | 
Definition at line 785 of file GLUP_context.h.
| 
 | inline | 
StateVariable default constructor.
Definition at line 791 of file GLUP_context.h.
| 
 | inline | 
StateVariableBase constructor.
| [in] | context | a pointer to the GLUP Context | 
| [in] | name | the name of the variable, without "GLUPStateBlock." (it is prepended automatically). | 
| [in] | value | initial value of the variable | 
Definition at line 801 of file GLUP_context.h.
| 
 | inline | 
Gets the value.
Definition at line 823 of file GLUP_context.h.
| 
 | inline | 
Initializes a StateVariable.
| [in] | context | a pointer to the GLUP Context | 
| [in] | name | the name of the variable, without "GLUPStateBlock." (it is prepended automatically). | 
| [in] | value | initial value of the variable | 
Definition at line 814 of file GLUP_context.h.
| 
 | inline | 
Sets the value.
| [in] | val | the new value | 
flags the uniform buffer as dirty
Definition at line 832 of file GLUP_context.h.