glbinding  3.3.0.0
A C++ binding for the OpenGL API, generated using the gl.xml specification.
Loading...
Searching...
No Matches
glbinding::State Class Reference

The State class represents the configuration of a function for one thread. This includes the driver function pointer (is allowed to differ between contexts) and the callback mask. More...

#include <glbinding/State.h>

Inheritance diagram for glbinding::State:
glbinding::AbstractState

Public Member Functions

 State ()=default
 Constructor.
 
virtual void resolve (const char *name) override
 Resolve a function and save its address.
 
- Public Member Functions inherited from glbinding::AbstractState
 AbstractState ()
 Constructor that initializes all values with 0 / invalid.
 
virtual ~AbstractState ()
 Destructor.
 
bool isInitialized () const
 Query if this state has been initialized.
 
ProcAddress address () const
 Query address of OpenGL function.
 
CallbackMask callbackMask () const
 Query callback mask.
 
void setCallbackMask (CallbackMask mask)
 Set callback mask.
 
bool isResolved () const
 Query resolution status.
 

Additional Inherited Members

- Protected Attributes inherited from glbinding::AbstractState
ProcAddress m_address
 The function pointer to the OpenGL function.
 
bool m_initialized
 Whether this state is initialized or not.
 
CallbackMask m_callbackMask
 The callback mask that is considered when dispatching function calls.
 

Detailed Description

The State class represents the configuration of a function for one thread. This includes the driver function pointer (is allowed to differ between contexts) and the callback mask.

Constructor & Destructor Documentation

◆ State()

glbinding::State::State ( )
default

Constructor.

Member Function Documentation

◆ resolve()

virtual void glbinding::State::resolve ( const char name)
overridevirtual

Resolve a function and save its address.

Parameters
[in]nameName of the function to be resolved

Implements glbinding::AbstractState.


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