Geogram  Version 1.9.1-rc
A programming library of geometric algorithms
GLUP::FloatsArrayStateVariable Class Reference

A GLUP state variable that contains an array of floating points. This concerns both vectors and matrices. More...

#include <geogram_gfx/GLUP/GLUP_context.h>

Inheritance diagram for GLUP::FloatsArrayStateVariable:
GLUP::StateVariableBase GLUP::VectorStateVariable

Public Member Functions

 FloatsArrayStateVariable ()
 FloatsArrayStateVariable default constructor.
 
 FloatsArrayStateVariable (Context *context, const char *name)
 FloatsArrayStateVariable constructor. More...
 
const GLUPfloat * get_pointer () const
 Gets a pointer to the variable. More...
 
GLUPfloat * get_pointer ()
 Gets a modifiable pointer to the variable. More...
 
- Public Member Functions inherited from GLUP::StateVariableBase
 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...
 

Additional Inherited Members

- Protected Member Functions inherited from GLUP::StateVariableBase
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 inherited from GLUP::StateVariableBase
Memory::pointer address_
 
Contextcontext_
 
std::string name_
 

Detailed Description

A GLUP state variable that contains an array of floating points. This concerns both vectors and matrices.

Definition at line 843 of file GLUP_context.h.

Constructor & Destructor Documentation

◆ FloatsArrayStateVariable()

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

FloatsArrayStateVariable constructor.

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

Definition at line 858 of file GLUP_context.h.

Member Function Documentation

◆ get_pointer() [1/2]

GLUPfloat* GLUP::FloatsArrayStateVariable::get_pointer ( )
inline

Gets a modifiable pointer to the variable.

Returns
a modifiable pointer to the first GLUPfloat stored in the variable

This flags the uniform buffer as dirty in the Context.

Definition at line 879 of file GLUP_context.h.

◆ get_pointer() [2/2]

const GLUPfloat* GLUP::FloatsArrayStateVariable::get_pointer ( ) const
inline

Gets a pointer to the variable.

Returns
a const pointer to the first GLUPfloat stored in the variable

Definition at line 868 of file GLUP_context.h.


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