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

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

#include <glbinding/AbstractState.h>

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

Public Member Functions

 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.
 
virtual void resolve (const char *name)=0
 Resolve address of OpenGL function.
 
bool isResolved () const
 Query resolution status.
 

Protected Attributes

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 struct represents the configuration of a single OpenGL function for one thread. This includes the driver function pointer (is allowed to differ between contexts) and the callback mask.

Constructor & Destructor Documentation

◆ AbstractState()

glbinding::AbstractState::AbstractState ( )

Constructor that initializes all values with 0 / invalid.

◆ ~AbstractState()

virtual glbinding::AbstractState::~AbstractState ( )
virtual

Destructor.

Member Function Documentation

◆ isInitialized()

bool glbinding::AbstractState::isInitialized ( ) const

Query if this state has been initialized.

Returns
true if state is initialized, false otherwise

◆ address()

ProcAddress glbinding::AbstractState::address ( ) const

Query address of OpenGL function.

Returns
Address of OpenGL function

◆ callbackMask()

CallbackMask glbinding::AbstractState::callbackMask ( ) const

Query callback mask.

Returns
Callback mask

◆ setCallbackMask()

void glbinding::AbstractState::setCallbackMask ( CallbackMask mask)

Set callback mask.

Parameters
[in]maskNew callback mask

◆ resolve()

virtual void glbinding::AbstractState::resolve ( const char * name)
pure virtual

Resolve address of OpenGL function.

Parameters
[in]nameName of the function to resolve

Implemented in glbinding::State.

◆ isResolved()

bool glbinding::AbstractState::isResolved ( ) const

Query resolution status.

Returns
true if function has been resolved, false otherwise

Member Data Documentation

◆ m_address

ProcAddress glbinding::AbstractState::m_address
protected

The function pointer to the OpenGL function.

◆ m_initialized

bool glbinding::AbstractState::m_initialized
protected

Whether this state is initialized or not.

◆ m_callbackMask

CallbackMask glbinding::AbstractState::m_callbackMask
protected

The callback mask that is considered when dispatching function calls.


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