Graphite  Version 3
An experimental 3D geometry processing program
GLUP::StateVariableBase Class Reference

Base class for representing GLUP state variables. More...

#include <geogram_gfx/GLUP/GLUP_context.h>

Inheritance diagram for GLUP::StateVariableBase:
GLUP::StateVariable< GLint > GLUP::StateVariable< GLfloat > GLUP::FloatsArrayStateVariable GLUP::StateVariable< T > GLUP::VectorStateVariable

Public Member Functions

 StateVariableBase ()
 StateVariableBase default constructor.
 
 StateVariableBase (Context *context, const char *name)
 StateVariableBase constructor. More...
 
void initialize (Context *context, const char *name)
 Initializes a StateVariableBase. More...
 
const std::string & name () const
 Gets the name of this StateVariableBase. More...
 

Protected Member Functions

Memory::pointer address () const
 Gets the address of the StateVariableBase. More...
 
void flag_uniform_buffer_as_dirty ()
 Indicates that the variables in the context need to be sent to OpenGL.
 

Protected Attributes

Memory::pointer address_
 
Contextcontext_
 
std::string name_
 

Friends

class Context
 

Detailed Description

Base class for representing GLUP state variables.

Definition at line 719 of file GLUP_context.h.

Constructor & Destructor Documentation

◆ StateVariableBase()

GLUP::StateVariableBase::StateVariableBase ( Context context,
const char *  name 
)
inline

StateVariableBase constructor.

Parameters
[in]contexta pointer to the GLUP Context
[in]namethe name of the variable, without "GLUPStateBlock." (it is prepended automatically).

Definition at line 734 of file GLUP_context.h.

Member Function Documentation

◆ address()

Memory::pointer GLUP::StateVariableBase::address ( ) const
inlineprotected

Gets the address of the StateVariableBase.

Returns
a pointer to the variable in the client-side representation of the UBO.

Definition at line 766 of file GLUP_context.h.

◆ initialize()

void GLUP::StateVariableBase::initialize ( Context context,
const char *  name 
)

Initializes a StateVariableBase.

Parameters
[in]contexta pointer to the GLUP Context
[in]namethe name of the variable, without "GLUPStateBlock." (it is prepended automatically when searching for the variable in the state).

◆ name()

const std::string& GLUP::StateVariableBase::name ( ) const
inline

Gets the name of this StateVariableBase.

Returns
a const reference to the name, without "GLUPStateBlock." prepended to it.

Definition at line 754 of file GLUP_context.h.


The documentation for this class was generated from the following file: