10#define WINAPI __stdcall
30template <
typename ReturnType,
typename... Arguments>
33 using type = std::function<void(ReturnType, Arguments...)>;
43template <
typename... Arguments>
46 using type = std::function<void(Arguments...)>;
61template <
typename ReturnType,
typename... Arguments>
92 ReturnType
operator()(Arguments&... arguments)
const;
106 ReturnType
call(Arguments&... arguments)
const;
120 ReturnType
directCall(Arguments... arguments)
const;
#define WINAPI
Definition Function.h:12
The AbstractFunction represents an OpenGL API function.
Definition AbstractFunction.h:24
const char * name() const
Name accessor.
The Function represents an OpenGL API function with additional features, including:
Definition Function.h:63
void setAfterCallback(AfterCallback callback)
Register a callback that is triggered after a function call to the OpenGL driver.
Definition Function.inl:195
AfterCallback afterCallback() const
The accessor for the afterCallback.
Definition Function.inl:213
ReturnType operator()(Arguments &... arguments) const
Executes a function call on the resolved function pointer and passes the arguments.
Definition Function.inl:146
ReturnType call(Arguments &... arguments) const
Executes a function call on the resolved function pointer and passes the arguments.
Definition Function.inl:152
ReturnType directCall(Arguments... arguments) const
Executes a function call on the resolved function pointer and passes the arguments.
Definition Function.inl:177
typename CallbackType< ReturnType, Arguments... >::type AfterCallback
The callback type for the after callback.
Definition Function.h:68
AfterCallback m_afterCallback
The currently registered after callback.
Definition Function.h:176
ReturnType(WINAPI *)(Arguments...) Signature
The c pointer type for a function call.
Definition Function.h:65
void setBeforeCallback(BeforeCallback callback)
Register a callback that is triggered before a function call to the OpenGL driver.
Definition Function.inl:183
void clearBeforeCallback()
Clears any previously registered before callback.
Definition Function.inl:189
void clearAfterCallback()
Clears any previously registered after callback.
Definition Function.inl:201
BeforeCallback beforeCallback() const
The accessor for the beforeCallback.
Definition Function.inl:207
BeforeCallback m_beforeCallback
The currently registered before callback.
Definition Function.h:175
typename CallbackType< void, Arguments... >::type BeforeCallback
The callback type for the before callback.
Definition Function.h:67
Contains all the classes of glbinding.
std::function< void(Arguments...)> type
Propagate the actual callable callback type.
Definition Function.h:46
A callback signature with return type and multiple arguments.
Definition Function.h:32
std::function< void(ReturnType, Arguments...)> type
Propagate the actual callable callback type.
Definition Function.h:33