/usr/include/glbinding/callbacks.h is in libglbinding-dev 2.1.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | #pragma once
#include <set>
#include <functional>
#include <glbinding/glbinding_api.h>
#include <glbinding/CallbackMask.h>
#include <glbinding/FunctionCall.h>
namespace glbinding
{
/**
* @brief
* Updates the callback mask of all registered OpenGL functions in the current state.
*
* @param[in] mask
* The new CallbackMask.
*/
GLBINDING_API void setCallbackMask(CallbackMask mask);
/**
* @brief
* Updates the callback mask of all registered OpenGL functions in the current state, excluding the blacklisted functions.
*
* @param[in] mask
* The new CallbackMask.
* @param[in] blackList
* The blacklist of functions to exclude in this update.
*/
GLBINDING_API void setCallbackMaskExcept(CallbackMask mask, const std::set<std::string> & blackList);
/**
* @brief
* Updates the callback mask of all registered OpenGL functions in the current state to include the passed CallbackMask.
*
* @param[in] mask
* The CallbackMask to include.
*/
GLBINDING_API void addCallbackMask(CallbackMask mask);
/**
* @brief
* Updates the callback mask of all registered OpenGL functions in the current state to include the passed CallbackMask, excluding the blacklisted functions.
*
* @param[in] mask
* The CallbackMask to include.
* @param[in] blackList
* The blacklist of functions to exclude in this update.
*/
GLBINDING_API void addCallbackMaskExcept(CallbackMask mask, const std::set<std::string> & blackList);
/**
* @brief
* Updates the callback mask of all registered OpenGL functions in the current state to exclude the passed CallbackMask.
*
* @param[in] mask
* The CallbackMask to exclude.
*/
GLBINDING_API void removeCallbackMask(CallbackMask mask);
/**
* @brief
* Updates the callback mask of all registered OpenGL functions in the current state to exclude the passed CallbackMask, excluding the blacklisted functions.
*
* @param[in] mask
* The CallbackMask to exclude.
* @param[in] blackList
* The blacklist of functions to exclude in this update.
*/
GLBINDING_API void removeCallbackMaskExcept(CallbackMask mask, const std::set<std::string> & blackList);
/**
* @brief
* The callback type of a simple function callback without parameters and return value.
*/
using SimpleFunctionCallback = std::function<void(const AbstractFunction &)>;
/**
* @brief
* The callback type of a function callback with parameters and return value.
*/
using FunctionCallback = std::function<void(const FunctionCall &)>;
/**
* @brief
* Unresolved callback accessor.
*
* @return
* The callback to use instead of unresolved function calls.
*
* Keep in mind that in addition to a registered callback, the callback mask of the current Function has to include the After flag to enable the callback.
*/
GLBINDING_API SimpleFunctionCallback unresolvedCallback();
/**
* @brief
* Updates the unresolved callback that is called upon invocation of an OpenGL function which have no counterpart in the OpenGL driver.
*
* @param[in] callback
* The callback to use instead of unresolved function calls.
*
* This callback is registered globally across all states.
* Keep in mind that in addition to a registered callback, the callback mask of the current Function has to include the Unresolved flag to enable the callback.
*/
GLBINDING_API void setUnresolvedCallback(SimpleFunctionCallback callback);
/**
* @brief
* Before callback accessor.
*
* @return
* The callback to use before an OpenGL function call.
*
* Keep in mind that in addition to a registered callback, the callback mask of the current Function has to include the After flag to enable the callback.
*/
GLBINDING_API FunctionCallback beforeCallback();
/**
* @brief
* Updates the before callback that is called before the actual OpenGL function invocation.
*
* @param[in] callback
* The callback to use before an OpenGL function call.
*
* This callback is registered globally across all states.
* Keep in mind that in addition to a registered callback, the callback mask of the current Function has to include the Before flag to enable the callback.
*/
GLBINDING_API void setBeforeCallback(FunctionCallback callback);
/**
* @brief
* After callback accessor.
*
* @return
* The callback to use after an OpenGL function call.
*
* Keep in mind that in addition to a registered callback, the callback mask of the current Function has to include the After flag to enable the callback.
*/
GLBINDING_API FunctionCallback afterCallback();
/**
* @brief
* * Updates the after callback that is called after the actual OpenGL function invocation.
*
* @param[in] callback
* The callback to use after an OpenGL function call.
*
* This callback is registered globally across all states.
* Keep in mind that in addition to a registered callback, the callback mask of the current Function has to include the After flag to enable the callback.
*/
GLBINDING_API void setAfterCallback(FunctionCallback callback);
} // namespace glbinding
|