glbinding  3.3.0.0
A C++ binding for the OpenGL API, generated using the gl.xml specification.
Loading...
Searching...
No Matches
glbinding.h File Reference
#include <set>
#include <string>
#include <vector>
#include <functional>
#include <glbinding/glbinding_api.h>
#include <glbinding/glbinding_features.h>
#include <glbinding/ContextHandle.h>
#include <glbinding/CallbackMask.h>
#include <glbinding/ProcAddress.h>

Go to the source code of this file.

Namespaces

namespace  glbinding
 Contains all the classes of glbinding.
 

Typedefs

using glbinding::SimpleFunctionCallback = std::function< void(const AbstractFunction &)>
 The signature of the unresolved callback.
 
using glbinding::FunctionCallback = std::function< void(const FunctionCall &)>
 The signature of the before and after callbacks.
 
using glbinding::FunctionLogCallback = std::function< void(FunctionCall *)>
 The signature of the log callback.
 
using glbinding::ContextSwitchCallback = std::function< void(ContextHandle)>
 The signature of the context switch callback.
 

Functions

void glbinding::initialize (glbinding::GetProcAddress functionPointerResolver, bool resolveFunctions=true)
 Initializes the binding for the current active OpenGL context.
 
void glbinding::initialize (ContextHandle context, glbinding::GetProcAddress functionPointerResolver, bool useContext=true, bool resolveFunctions=true)
 Initializes the binding for the current active OpenGL context.
 
void glbinding::useCurrentContext ()
 Update the current context state in glbinding.
 
void glbinding::useContext (ContextHandle context)
 Update the current context state in glbinding.
 
void glbinding::releaseCurrentContext ()
 Removes the current context from the state of glbinding.
 
void glbinding::releaseContext (ContextHandle context)
 Removes the current context from the state of glbinding.
 
void glbinding::registerAdditionalFunction (AbstractFunction *function)
 Registers an additional function for the additional features.
 
ProcAddress glbinding::resolveFunction (const char *name)
 Resolve a single function pointer by given name.
 
void glbinding::resolveFunctions ()
 Resolves the funtion pointers of all registered OpenGL functions immediately for the current context.
 
void glbinding::setCallbackMask (CallbackMask mask)
 Updates the callback mask of all registered OpenGL functions in the current state.
 
void glbinding::setCallbackMaskExcept (CallbackMask mask, const std::set< std::string > &blackList)
 Updates the callback mask of all registered OpenGL functions in the current state, excluding the blacklisted functions.
 
void glbinding::addCallbackMask (CallbackMask mask)
 Updates the callback mask of all registered OpenGL functions in the current state to include the passed CallbackMask.
 
void glbinding::addCallbackMaskExcept (CallbackMask mask, const std::set< std::string > &blackList)
 Updates the callback mask of all registered OpenGL functions in the current state to include the passed CallbackMask, excluding the blacklisted functions.
 
void glbinding::removeCallbackMask (CallbackMask mask)
 Updates the callback mask of all registered OpenGL functions in the current state to exclude the passed CallbackMask.
 
void glbinding::removeCallbackMaskExcept (CallbackMask mask, const std::set< std::string > &blackList)
 Updates the callback mask of all registered OpenGL functions in the current state to exclude the passed CallbackMask, excluding the blacklisted functions.
 
SimpleFunctionCallback glbinding::unresolvedCallback ()
 Unresolved callback accessor.
 
void glbinding::setUnresolvedCallback (SimpleFunctionCallback callback)
 Updates the unresolved callback that is called upon invocation of an OpenGL function which have no counterpart in the OpenGL driver.
 
FunctionCallback glbinding::beforeCallback ()
 Before callback accessor.
 
void glbinding::setBeforeCallback (FunctionCallback callback)
 Updates the before callback that is called before the actual OpenGL function invocation.
 
FunctionCallback glbinding::afterCallback ()
 After callback accessor.
 
void glbinding::setAfterCallback (FunctionCallback callback)
 Updates the after callback that is called after the actual OpenGL function invocation.
 
FunctionLogCallback glbinding::logCallback ()
 Logging callback accessor.
 
void glbinding::setLogCallback (FunctionLogCallback callback)
 Updates the logging callback that is called to log the actual OpenGL function invocation.
 
void glbinding::addContextSwitchCallback (ContextSwitchCallback callback)
 Registers an additional callback that gets called each time the context is switched using the useContext method.