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>
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.
◆ AbstractState()
glbinding::AbstractState::AbstractState |
( |
| ) |
|
Constructor that initializes all values with 0 / invalid.
◆ ~AbstractState()
virtual glbinding::AbstractState::~AbstractState |
( |
| ) |
|
|
virtual |
◆ 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()
Set callback mask.
- Parameters
-
[in] | mask | New callback mask |
◆ resolve()
Resolve address of OpenGL function.
- Parameters
-
[in] | name | Name 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
◆ m_address
The function pointer to the OpenGL function.
◆ m_initialized
bool glbinding::AbstractState::m_initialized |
|
protected |
Whether this state is initialized or not.
◆ m_callbackMask
The callback mask that is considered when dispatching function calls.
The documentation for this class was generated from the following file: