10 #define WINAPI __stdcall 30 template <
typename ReturnType,
typename... Arguments>
33 using type = std::function<void(ReturnType, Arguments...)>;
43 template <
typename... Arguments>
46 using type = std::function<void(Arguments...)>;
61 template <
typename ReturnType,
typename... Arguments>
92 ReturnType operator()(Arguments&... arguments)
const;
106 ReturnType call(Arguments&... arguments)
const;
120 ReturnType directCall(Arguments... arguments)
const;
137 void clearBeforeCallback();
154 void clearAfterCallback();
Contains all the classes of glbinding.
BeforeCallback m_beforeCallback
The currently registered before callback.
Definition: Function.h:175
std::function< void(ReturnType, Arguments...)> type
Propagate the actual callable callback type.
Definition: Function.h:33
#define WINAPI
Definition: Function.h:12
AfterCallback m_afterCallback
The currently registered after callback.
Definition: Function.h:176
typename CallbackType< void, Arguments... >::type BeforeCallback
The callback type for the before callback.
Definition: Function.h:67
GLBINDING_API void setBeforeCallback(FunctionCallback callback)
Updates the before callback that is called before the actual OpenGL function invocation.
GLBINDING_API FunctionCallback beforeCallback()
Before callback accessor.
GLBINDING_API FunctionCallback afterCallback()
After callback accessor.
std::function< void(Arguments...)> type
Propagate the actual callable callback type.
Definition: Function.h:46
The AbstractFunction represents an OpenGL API function.
Definition: AbstractFunction.h:23
void(WINAPI *)(Arguments...) Signature
The c pointer type for a function call.
Definition: Function.h:65
The Function represents an OpenGL API function with additional features, including: ...
Definition: Function.h:62
A callback signature with return type and multiple arguments.
Definition: Function.h:31
typename CallbackType< void, Arguments... >::type AfterCallback
The callback type for the after callback.
Definition: Function.h:68
GLBINDING_API void setAfterCallback(FunctionCallback callback)