glbinding  2.1.1.000000000000
A C++ binding for the OpenGL API, generated using the gl.xml specification.
CallbackMask.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <glbinding/glbinding_api.h>
5 
6 
7 namespace glbinding
8 {
9 
10 
15 enum class CallbackMask : unsigned char
16 {
17  None = 0,
18  Unresolved = 1 << 0,
19  Before = 1 << 1,
20  After = 1 << 2,
21  Parameters = 1 << 3,
22  ReturnValue = 1 << 4,
23  Logging = 1 << 5,
26 };
27 
38 GLBINDING_API CallbackMask operator~(CallbackMask a);
39 
53 
67 
81 
94 GLBINDING_API CallbackMask& operator|=(CallbackMask& a, CallbackMask b);
95 
108 GLBINDING_API CallbackMask& operator&=(CallbackMask& a, CallbackMask b);
109 
122 GLBINDING_API CallbackMask& operator^=(CallbackMask& a, CallbackMask b);
123 
124 
125 } // namespace glbinding
@ Unresolved
Enables the callback for unresolved function calls.
GLBINDING_API CallbackMask operator~(CallbackMask a)
External operator for bit-wise CallbackMask inverting.
GLBINDING_API CallbackMask operator^(CallbackMask a, CallbackMask b)
External operator for bit-wise 'xor' of CallbackMasks.
@ ReturnValue
Enables the provision of a return value in the after callback.
@ None
All callbacks and logging is disabled.
GLBINDING_API CallbackMask & operator|=(CallbackMask &a, CallbackMask b)
External operator for bit-wise 'or' assignment of CallbackMasks.
@ Parameters
Enables the provision of parameter values in the before and after callbacks.
GLBINDING_API CallbackMask operator&(CallbackMask a, CallbackMask b)
External operator for bit-wise 'and' of CallbackMasks.
GLBINDING_API CallbackMask operator|(CallbackMask a, CallbackMask b)
External operator for bit-wise 'or' of CallbackMasks.
@ After
Enables the after callbacks.
@ Logging
Enables logging to file.
CallbackMask
The CallbackMask is a bitfield to encode the states of callbacks and logging for the OpenGL API funct...
Definition: CallbackMask.h:15
Contains all the classes of glbinding.
GLBINDING_API CallbackMask & operator^=(CallbackMask &a, CallbackMask b)
External operator for bit-wise 'xor' assignment of CallbackMasks.
GLBINDING_API CallbackMask & operator&=(CallbackMask &a, CallbackMask b)
External operator for bit-wise 'and' assignment of CallbackMasks.
@ Before
Enables the before callbacks.