![]() |
glbinding
3.0.2.58901078581f
A C++ binding for the OpenGL API, generated using the gl.xml specification.
|
Contains all the classes of glbinding. More...
Classes | |
class AbstractFunction | |
The AbstractFunction represents an OpenGL API function by its name and entry point after dynamic address resolution. More... | |
class AbstractState | |
The State struct represents the configuration of an OpenGL function for one thread. This includes the driver function pointer (is allowed to differ between contexts) and the callback mask. More... | |
class AbstractValue | |
The AbstractValue class represents the superclass of a printable wrapper around an OpenGL data type. More... | |
class Binding | |
The main interface to handle additional features to OpenGL functions besides regular function calls. More... | |
class Boolean8 | |
struct CallbackType | |
A callback signature with return type and multiple arguments. More... | |
struct CallbackType< void, Arguments... > | |
A callback signature with multiple arguments but no return type. More... | |
class Function | |
The Function represents an OpenGL API function with additional features, including: More... | |
class FunctionCall | |
A FunctionCall represents a function call of an OpenGL API function, including the parameter and return values. More... | |
struct FunctionHelper | |
struct intersect_SharedBitfield | |
Break condition for the SharedBitfield intersection. More... | |
struct intersect_SharedBitfield< SharedBitfield< T, Types... >, SharedBitfield< OtherTypes... > > | |
The SharedBitfield type list intersection. More... | |
struct is_member_of_SharedBitfield | |
Break condition for the is_member_of_SharedBitfield metaprogramming. More... | |
struct is_member_of_SharedBitfield< T, U, Types... > | |
Test condition and recursion for the is_member_of_SharedBitfield metaprogramming. More... | |
struct prepend_to_SharedBitfield | |
Break condition for the SharedBitfield type concatenation. More... | |
struct prepend_to_SharedBitfield< T, SharedBitfield< Types... > > | |
The SharedBitfield type concatenation. More... | |
class SharedBitfield< Type > | |
A representation of a bitfield value that could be member of multiple bitfield types as allowed in OpenGL. This template is the break condition of a former SharedBitfield that got reduced to just one valid bitfield type through operations. More... | |
class SharedBitfield< Type, Types... > | |
A representation of a bitfield value that could be member of multiple bitfield types as allowed in OpenGL. More... | |
class SharedBitfield<> | |
Invalid SharedBitfield class as it contains no valid bitfield types. More... | |
class SharedBitfieldBase | |
The base class of a SharedBitfield, containing the actual (and convertible) bitfield value. More... | |
class State | |
class Value | |
The Value class represents a printable wrapper around an OpenGL data type. More... | |
class Version | |
The Version class represents an OpenGL feature, consisting of majow version and minor version, excluding the profile information. More... | |
Typedefs | |
using ContextHandle = long long int | |
using SimpleFunctionCallback = std::function< void(const AbstractFunction &)> | |
using FunctionCallback = std::function< void(const FunctionCall &)> | |
using FunctionLogCallback = std::function< void(FunctionCall *)> | |
using ContextSwitchCallback = std::function< void(ContextHandle)> | |
The signature of the context switch callback. More... | |
using ProcAddress) = void(*)( | |
The generic pointer to an OpenGL function. More... | |
using GetProcAddress = std::function< ProcAddress(const char *)> | |
The signature for the getProcAddress function. More... | |
Enumerations | |
enum CallbackMask : unsigned char { CallbackMask::None = 0, CallbackMask::Unresolved = 1 << 0, CallbackMask::Before = 1 << 1, CallbackMask::After = 1 << 2, CallbackMask::Parameters = 1 << 3, CallbackMask::ReturnValue = 1 << 4, CallbackMask::Logging = 1 << 5, CallbackMask::Timestamp = 1 << 6, CallbackMask::ParametersAndReturnValue = Parameters | ReturnValue, CallbackMask::BeforeAndAfter = Before | After, CallbackMask::All = Unresolved | Before | After | Parameters | ReturnValue | Logging | Timestamp } | |
The CallbackMask is a bitfield to encode the states of callbacks for the OpenGL API function calls. More... | |
Functions | |
GLBINDING_CONSTEXPR CallbackMask operator~ (CallbackMask a) | |
External operator for bit-wise CallbackMask inverting. More... | |
GLBINDING_CONSTEXPR CallbackMask operator| (CallbackMask a, CallbackMask b) | |
External operator for bit-wise 'or' of CallbackMasks. More... | |
GLBINDING_CONSTEXPR CallbackMask operator& (CallbackMask a, CallbackMask b) | |
External operator for bit-wise 'and' of CallbackMasks. More... | |
GLBINDING_CONSTEXPR CallbackMask operator^ (CallbackMask a, CallbackMask b) | |
External operator for bit-wise 'xor' of CallbackMasks. More... | |
CallbackMask & operator|= (CallbackMask &a, CallbackMask b) | |
External operator for bit-wise 'or' assignment of CallbackMasks. More... | |
CallbackMask & operator&= (CallbackMask &a, CallbackMask b) | |
External operator for bit-wise 'and' assignment of CallbackMasks. More... | |
CallbackMask & operator^= (CallbackMask &a, CallbackMask b) | |
External operator for bit-wise 'xor' assignment of CallbackMasks. More... | |
GLBINDING_API void initialize (glbinding::GetProcAddress functionPointerResolver, bool resolveFunctions=true) | |
GLBINDING_API void registerAdditionalFunction (AbstractFunction *function) | |
GLBINDING_API ProcAddress resolveFunction (const char *name) | |
GLBINDING_API void resolveFunctions () | |
GLBINDING_API void setCallbackMask (CallbackMask mask) | |
GLBINDING_API void setCallbackMaskExcept (CallbackMask mask, const std::set< std::string > &blackList) | |
GLBINDING_API void addCallbackMask (CallbackMask mask) | |
GLBINDING_API void addCallbackMaskExcept (CallbackMask mask, const std::set< std::string > &blackList) | |
GLBINDING_API void removeCallbackMask (CallbackMask mask) | |
GLBINDING_API void removeCallbackMaskExcept (CallbackMask mask, const std::set< std::string > &blackList) | |
GLBINDING_API SimpleFunctionCallback unresolvedCallback () | |
GLBINDING_API void setUnresolvedCallback (SimpleFunctionCallback callback) | |
GLBINDING_API FunctionCallback beforeCallback () | |
GLBINDING_API void setBeforeCallback (FunctionCallback callback) | |
GLBINDING_API FunctionCallback afterCallback () | |
GLBINDING_API void setAfterCallback (FunctionCallback callback) | |
GLBINDING_API FunctionLogCallback logCallback () | |
GLBINDING_API void setLogCallback (FunctionLogCallback callback) | |
GLBINDING_API void addContextSwitchCallback (ContextSwitchCallback callback) | |
GLBINDING_API void initialize (ContextHandle context, glbinding::GetProcAddress functionPointerResolver, bool useContext=true, bool resolveFunctions=true) | |
GLBINDING_API void useCurrentContext () | |
GLBINDING_API void useContext (ContextHandle context) | |
GLBINDING_API void releaseCurrentContext () | |
GLBINDING_API void releaseContext (ContextHandle context) | |
template<typename Enum , typename ConvertibleEnum > | |
GLBINDING_CONSTEXPR std::enable_if< std::is_base_of< SharedBitfieldBase< typename std::underlying_type< typename std::enable_if< std::is_enum< Enum >::value, Enum >::type >::type >, ConvertibleEnum >::value, Enum >::type | operator| (Enum a, ConvertibleEnum b) |
External bit-wise 'or' operator for bitfield types on the left hand side. More... | |
template<typename ConvertibleEnum , typename Enum > | |
GLBINDING_CONSTEXPR std::enable_if< std::is_base_of< SharedBitfieldBase< typename std::underlying_type< typename std::enable_if< std::is_enum< Enum >::value, Enum >::type >::type >, ConvertibleEnum >::value, Enum >::type | operator| (ConvertibleEnum a, Enum b) |
External bit-wise 'or' operator for bitfield types on the right hand side. More... | |
template<typename Enum , typename ConvertibleEnum > | |
std::enable_if< std::is_base_of< SharedBitfieldBase< typename std::underlying_type< typename std::enable_if< std::is_enum< Enum >::value, Enum >::type >::type >, ConvertibleEnum >::value, Enum >::type | operator|= (Enum &a, ConvertibleEnum b) |
External bit-wise 'or' assignment operator for bitfield types on the left hand side. More... | |
template<typename Enum , typename ConvertibleEnum > | |
GLBINDING_CONSTEXPR std::enable_if< std::is_base_of< SharedBitfieldBase< typename std::underlying_type< typename std::enable_if< std::is_enum< Enum >::value, Enum >::type >::type >, ConvertibleEnum >::value, Enum >::type | operator& (Enum a, ConvertibleEnum b) |
External bit-wise 'and' operator for bitfield types on the left hand side. More... | |
template<typename ConvertibleEnum , typename Enum > | |
GLBINDING_CONSTEXPR std::enable_if< std::is_base_of< SharedBitfieldBase< typename std::underlying_type< typename std::enable_if< std::is_enum< Enum >::value, Enum >::type >::type >, ConvertibleEnum >::value, Enum >::type | operator& (ConvertibleEnum a, Enum b) |
External bit-wise 'and' operator for bitfield types on the right hand side. More... | |
template<typename Enum , typename ConvertibleEnum > | |
std::enable_if< std::is_base_of< SharedBitfieldBase< typename std::underlying_type< typename std::enable_if< std::is_enum< Enum >::value, Enum >::type >::type >, ConvertibleEnum >::value, Enum >::type | operator&= (Enum &a, ConvertibleEnum b) |
External bit-wise 'and' assignment operator for bitfield types on the left hand side. More... | |
template<typename Enum , typename ConvertibleEnum > | |
GLBINDING_CONSTEXPR std::enable_if< std::is_base_of< SharedBitfieldBase< typename std::underlying_type< typename std::enable_if< std::is_enum< Enum >::value, Enum >::type >::type >, ConvertibleEnum >::value, Enum >::type | operator^ (Enum a, ConvertibleEnum b) |
External bit-wise 'xor' operator for bitfield types on the left hand side. More... | |
template<typename ConvertibleEnum , typename Enum > | |
GLBINDING_CONSTEXPR std::enable_if< std::is_base_of< SharedBitfieldBase< typename std::underlying_type< typename std::enable_if< std::is_enum< Enum >::value, Enum >::type >::type >, ConvertibleEnum >::value, Enum >::type | operator^ (ConvertibleEnum a, Enum b) |
External bit-wise 'xor' operator for bitfield types on the right hand side. More... | |
template<typename Enum , typename ConvertibleEnum > | |
std::enable_if< std::is_base_of< SharedBitfieldBase< typename std::underlying_type< typename std::enable_if< std::is_enum< Enum >::value, Enum >::type >::type >, ConvertibleEnum >::value, Enum >::type | operator^= (Enum &a, ConvertibleEnum b) |
External bit-wise 'xpyor' assignment operator for bitfield types on the left hand side. More... | |
template<typename Argument > | |
std::unique_ptr< AbstractValue > | createValue (const Argument &argument) |
A wrapper around the type deduction and memory allocation of a specific argument. More... | |
template<typename... Arguments> | |
std::vector< std::unique_ptr< AbstractValue > > | createValues (Arguments &&...arguments) |
A wrapper around the creation of a vector of arguments. More... | |
Variables | |
template<typename... Types> | |
class GLBINDING_TEMPLATE_API | SharedBitfield |
A representation of a bitfield value that could be member of multiple bitfield types as allowed in OpenGL. More... | |
Contains all the classes of glbinding.
TODO: Detailed documentation for glbinding here.
using glbinding::ContextHandle = typedef long long int |
using glbinding::SimpleFunctionCallback = typedef std::function<void(const AbstractFunction &)> |
using glbinding::FunctionCallback = typedef std::function<void(const FunctionCall &)> |
using glbinding::FunctionLogCallback = typedef std::function<void(FunctionCall *)> |
using glbinding::ContextSwitchCallback = typedef std::function<void(ContextHandle)> |
The signature of the context switch callback.
using glbinding::ProcAddress = typedef void(*)( |
The generic pointer to an OpenGL function.
using glbinding::GetProcAddress = typedef std::function<ProcAddress(const char*)> |
The signature for the getProcAddress function.
|
strong |
The CallbackMask is a bitfield to encode the states of callbacks for the OpenGL API function calls.
|
inline |
External operator for bit-wise CallbackMask inverting.
[in] | a | The CallbackMask to invert |
|
inline |
External operator for bit-wise 'or' of CallbackMasks.
[in] | a | The first CallbackMask |
[in] | b | The second CallbackMask |
|
inline |
External operator for bit-wise 'and' of CallbackMasks.
[in] | a | The first CallbackMask |
[in] | b | The second CallbackMask |
|
inline |
External operator for bit-wise 'xor' of CallbackMasks.
[in] | a | The first CallbackMask |
[in] | b | The second CallbackMask |
|
inline |
External operator for bit-wise 'or' assignment of CallbackMasks.
[in] | a | The first CallbackMask |
[in] | b | The second CallbackMask |
|
inline |
External operator for bit-wise 'and' assignment of CallbackMasks.
[in] | a | The first CallbackMask |
[in] | b | The second CallbackMask |
|
inline |
External operator for bit-wise 'xor' assignment of CallbackMasks.
[in] | a | The first CallbackMask |
[in] | b | The second CallbackMask |
GLBINDING_API void glbinding::initialize | ( | glbinding::GetProcAddress | functionPointerResolver, |
bool | resolveFunctions = true |
||
) |
GLBINDING_API void glbinding::registerAdditionalFunction | ( | AbstractFunction * | function | ) |
GLBINDING_API ProcAddress glbinding::resolveFunction | ( | const char * | name | ) |
GLBINDING_API void glbinding::resolveFunctions | ( | ) |
GLBINDING_API void glbinding::setCallbackMask | ( | CallbackMask | mask | ) |
GLBINDING_API void glbinding::setCallbackMaskExcept | ( | CallbackMask | mask, |
const std::set< std::string > & | blackList | ||
) |
GLBINDING_API void glbinding::addCallbackMask | ( | CallbackMask | mask | ) |
GLBINDING_API void glbinding::addCallbackMaskExcept | ( | CallbackMask | mask, |
const std::set< std::string > & | blackList | ||
) |
GLBINDING_API void glbinding::removeCallbackMask | ( | CallbackMask | mask | ) |
GLBINDING_API void glbinding::removeCallbackMaskExcept | ( | CallbackMask | mask, |
const std::set< std::string > & | blackList | ||
) |
GLBINDING_API SimpleFunctionCallback glbinding::unresolvedCallback | ( | ) |
GLBINDING_API void glbinding::setUnresolvedCallback | ( | SimpleFunctionCallback | callback | ) |
GLBINDING_API FunctionCallback glbinding::beforeCallback | ( | ) |
GLBINDING_API void glbinding::setBeforeCallback | ( | FunctionCallback | callback | ) |
GLBINDING_API FunctionCallback glbinding::afterCallback | ( | ) |
GLBINDING_API void glbinding::setAfterCallback | ( | FunctionCallback | callback | ) |
GLBINDING_API FunctionLogCallback glbinding::logCallback | ( | ) |
GLBINDING_API void glbinding::setLogCallback | ( | FunctionLogCallback | callback | ) |
GLBINDING_API void glbinding::addContextSwitchCallback | ( | ContextSwitchCallback | callback | ) |
GLBINDING_API void glbinding::initialize | ( | ContextHandle | context, |
glbinding::GetProcAddress | functionPointerResolver, | ||
bool | useContext = true , |
||
bool | resolveFunctions = true |
||
) |
GLBINDING_API void glbinding::useCurrentContext | ( | ) |
GLBINDING_API void glbinding::useContext | ( | ContextHandle | context | ) |
GLBINDING_API void glbinding::releaseCurrentContext | ( | ) |
GLBINDING_API void glbinding::releaseContext | ( | ContextHandle | context | ) |
|
inline |
External bit-wise 'or' operator for bitfield types on the left hand side.
Enum | The type of the bitfield |
ConvertibleEnum | The SharedBitfield instance |
[in] | a | The value of the bitfield |
[in] | b | The value of the SharedBitfield |
|
inline |
External bit-wise 'or' operator for bitfield types on the right hand side.
ConvertibleEnum | The SharedBitfield instance |
Enum | The type of the bitfield |
[in] | a | The value of the SharedBitfield |
[in] | b | The value of the bitfield |
|
inline |
External bit-wise 'or' assignment operator for bitfield types on the left hand side.
Enum | The type of the bitfield |
ConvertibleEnum | The SharedBitfield instance |
[in] | a | The value of the bitfield |
[in] | b | The value of the SharedBitfield |
|
inline |
External bit-wise 'and' operator for bitfield types on the left hand side.
Enum | The type of the bitfield |
ConvertibleEnum | The SharedBitfield instance |
[in] | a | The value of the bitfield |
[in] | b | The value of the SharedBitfield |
|
inline |
External bit-wise 'and' operator for bitfield types on the right hand side.
ConvertibleEnum | The SharedBitfield instance |
Enum | The type of the bitfield |
[in] | a | The value of the SharedBitfield |
[in] | b | The value of the bitfield |
|
inline |
External bit-wise 'and' assignment operator for bitfield types on the left hand side.
Enum | The type of the bitfield |
ConvertibleEnum | The SharedBitfield instance |
[in] | a | The value of the bitfield |
[in] | b | The value of the SharedBitfield |
|
inline |
External bit-wise 'xor' operator for bitfield types on the left hand side.
Enum | The type of the bitfield |
ConvertibleEnum | The SharedBitfield instance |
[in] | a | The value of the bitfield |
[in] | b | The value of the SharedBitfield |
|
inline |
External bit-wise 'xor' operator for bitfield types on the right hand side.
ConvertibleEnum | The SharedBitfield instance |
Enum | The type of the bitfield |
[in] | a | The value of the SharedBitfield |
[in] | b | The value of the bitfield |
|
inline |
External bit-wise 'xpyor' assignment operator for bitfield types on the left hand side.
Enum | The type of the bitfield |
ConvertibleEnum | The SharedBitfield instance |
[in] | a | The value of the bitfield |
[in] | b | The value of the SharedBitfield |
|
inline |
A wrapper around the type deduction and memory allocation of a specific argument.
Argument | The type of the argument, usually an OpenGL data type. |
[in] | argument | The argument to wrap into a Value of type Argument. |
Referenced by glbinding::FunctionHelper< ReturnType, Arguments >::call().
|
inline |
A wrapper around the creation of a vector of arguments.
Arguments | The types of the arguments, usually OpenGL data types |
[in] | arguments | The variadic parameter list of all arguments to convert |
Referenced by glbinding::FunctionHelper< ReturnType, Arguments >::call().
class GLBINDING_TEMPLATE_API glbinding::SharedBitfield |
A representation of a bitfield value that could be member of multiple bitfield types as allowed in OpenGL.
Types | The valid bitfield types for the given value |
Referenced by glbinding::SharedBitfield< Type >::operator&(), glbinding::SharedBitfield< Type, Types... >::operator&(), glbinding::SharedBitfield< Type >::operator^(), glbinding::SharedBitfield< Type, Types... >::operator^(), glbinding::SharedBitfield< Type >::operator|(), and glbinding::SharedBitfield< Type, Types... >::operator|().