10#include <glbinding/glbinding_api.h>
11#include <glbinding/glbinding_features.h>
22class AbstractFunction;
The AbstractFunction represents an OpenGL API function by its name and entry point after dynamic addr...
Definition AbstractFunction.h:30
A FunctionCall represents a function call of an OpenGL API function, including the parameter and retu...
Definition FunctionCall.h:27
The Value class represents a printable wrapper around an OpenGL data type.
Definition Value.h:30
Contains all the classes of glbinding.
void addCallbackMask(CallbackMask mask)
Updates the callback mask of all registered OpenGL functions in the current state to include the pass...
void useCurrentContext()
Update the current context state in glbinding.
void setAfterCallback(FunctionCallback callback)
Updates the after callback that is called after the actual OpenGL function invocation.
void releaseCurrentContext()
Removes the current context from the state of glbinding.
std::function< void(const AbstractFunction &)> SimpleFunctionCallback
The signature of the unresolved callback.
Definition glbinding.h:26
void releaseContext(ContextHandle context)
Removes the current context from the state of glbinding.
void 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 pass...
void useContext(ContextHandle context)
Update the current context state in glbinding.
void initialize(glbinding::GetProcAddress functionPointerResolver, bool resolveFunctions=true)
Initializes the binding for the current active OpenGL context.
std::function< void(FunctionCall *)> FunctionLogCallback
The signature of the log callback.
Definition glbinding.h:28
void resolveFunctions()
Resolves the funtion pointers of all registered OpenGL functions immediately for the current context.
void removeCallbackMask(CallbackMask mask)
Updates the callback mask of all registered OpenGL functions in the current state to exclude the pass...
void addContextSwitchCallback(ContextSwitchCallback callback)
Registers an additional callback that gets called each time the context is switched using the useCont...
ProcAddress resolveFunction(const char *name)
Resolve a single function pointer by given name.
void setBeforeCallback(FunctionCallback callback)
Updates the before callback that is called before the actual OpenGL function invocation.
FunctionCallback afterCallback()
After callback accessor.
void registerAdditionalFunction(AbstractFunction *function)
Registers an additional function for the additional features.
void setLogCallback(FunctionLogCallback callback)
Updates the logging callback that is called to log the actual OpenGL function invocation.
std::function< ProcAddress(const char *)> GetProcAddress
The signature for the getProcAddress function.
Definition ProcAddress.h:24
void setCallbackMaskExcept(CallbackMask mask, const std::set< std::string > &blackList)
Updates the callback mask of all registered OpenGL functions in the current state,...
FunctionCallback beforeCallback()
Before callback accessor.
void setCallbackMask(CallbackMask mask)
Updates the callback mask of all registered OpenGL functions in the current state.
FunctionLogCallback logCallback()
Logging callback accessor.
std::function< void(const FunctionCall &)> FunctionCallback
The signature of the before and after callbacks.
Definition glbinding.h:27
std::function< void(ContextHandle)> ContextSwitchCallback
The signature of the context switch callback.
Definition glbinding.h:29
SimpleFunctionCallback unresolvedCallback()
Unresolved callback accessor.
void setUnresolvedCallback(SimpleFunctionCallback callback)
Updates the unresolved callback that is called upon invocation of an OpenGL function which have no co...
CallbackMask
The CallbackMask is a bitfield to encode the states of callbacks for the OpenGL API function calls.
Definition CallbackMask.h:18
void 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 pass...