glbinding  2.0.0.00e2ff521289
A C++ binding for the OpenGL API, generated using the gl.xml specification.
callbacks.h File Reference
#include <set>
#include <functional>
#include <glbinding/glbinding_api.h>
#include <glbinding/CallbackMask.h>
#include <glbinding/FunctionCall.h>

Go to the source code of this file.

Namespaces

 glbinding
 Contains all the classes of glbinding.
 

Typedefs

using glbinding::SimpleFunctionCallback = std::function< void(const AbstractFunction &)>
 The callback type of a simple function callback without parameters and return value. More...
 
using glbinding::FunctionCallback = std::function< void(const FunctionCall &)>
 The callback type of a function callback with parameters and return value. More...
 

Functions

GLBINDING_API void glbinding::setCallbackMask (CallbackMask mask)
 Updates the callback mask of all registered OpenGL functions in the current state. More...
 
GLBINDING_API 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. More...
 
GLBINDING_API void glbinding::addCallbackMask (CallbackMask mask)
 Updates the callback mask of all registered OpenGL functions in the current state to include the passed CallbackMask. More...
 
GLBINDING_API 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. More...
 
GLBINDING_API void glbinding::removeCallbackMask (CallbackMask mask)
 Updates the callback mask of all registered OpenGL functions in the current state to exclude the passed CallbackMask. More...
 
GLBINDING_API 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. More...
 
GLBINDING_API SimpleFunctionCallback glbinding::unresolvedCallback ()
 Unresolved callback accessor. More...
 
GLBINDING_API 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. More...
 
GLBINDING_API FunctionCallback glbinding::beforeCallback ()
 Before callback accessor. More...
 
GLBINDING_API void glbinding::setBeforeCallback (FunctionCallback callback)
 Updates the before callback that is called before the actual OpenGL function invocation. More...
 
GLBINDING_API FunctionCallback glbinding::afterCallback ()
 After callback accessor. More...
 
GLBINDING_API void glbinding::setAfterCallback (FunctionCallback callback)