13 #ifndef OGLPLUS_CONTEXT_NUMERIC_QUERIES_1202210920_HPP
14 #define OGLPLUS_CONTEXT_NUMERIC_QUERIES_1202210920_HPP
48 OGLPLUS_GLFUNC(GetIntegerv)(GL_MAJOR_VERSION, &result);
49 OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
66 OGLPLUS_GLFUNC(GetIntegerv)(GL_MINOR_VERSION, &result);
67 OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
71 #if OGLPLUS_DOCUMENTATION_ONLY || GL_VERSION_3_3 || GL_ARB_timer_query
81 OGLPLUS_GLFUNC(GetInteger64v)(GL_TIMESTAMP, &result);
82 OGLPLUS_VERIFY_SIMPLE(GetInteger64v);
87 #if OGLPLUS_DOCUMENTATION_ONLY || GL_VERSION_3_2
98 OGLPLUS_GLFUNC(GetIntegerv)(GL_CONTEXT_PROFILE_MASK, &result);
99 OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
104 #if OGLPLUS_DOCUMENTATION_ONLY || GL_VERSION_3_2
114 OGLPLUS_GLFUNC(GetIntegerv)(GL_CONTEXT_FLAGS, &result);
115 OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
120 #if OGLPLUS_DOCUMENTATION_ONLY || GL_VERSION_4_5 || GL_KHR_context_flush_control
130 OGLPLUS_GLFUNC(GetIntegerv)(GL_CONTEXT_RELEASE_BEHAVIOR, &result);
131 OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
136 #if OGLPLUS_DOCUMENTATION_ONLY || GL_VERSION_4_5
147 OGLPLUS_GLFUNC(GetIntegerv)(
148 GL_RESET_NOTIFICATION_STRATEGY,
151 OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
163 GLenum result = OGLPLUS_GLFUNC(GetGraphicsResetStatus)();
164 OGLPLUS_VERIFY_SIMPLE(GetGraphicsResetStatus);
173 #endif // include guard
static oglplus::ResetNotificationStrategy ResetNotificationStrategy(void)
Returns the context graphics reset notification strategy.
Definition: numeric_queries.hpp:144
ResetNotificationStrategy
Graphics reset notification strategy enumeration.
Definition: reset_notif_strategy.hpp:27
static Bitfield< ContextProfileBit > ProfileMask(void)
Query the context profile mask.
Definition: numeric_queries.hpp:95
GL context profile bit enumeration.
This template serves as a wrapper for OpenGL bitfields.
Definition: bitfield.hpp:56
GL context flag bit enumeration.
static GLint MajorVersion(void)
Definition: numeric_queries.hpp:45
Helper macro for optional checking of availability of GL function.
Wrapper for the graphics reset notification strategy.
ContextReleaseBehavior
GL Context release behavior enumeration.
Definition: context_release_behavior.hpp:24
Wrapper for the graphics reset status enumeration.
Flush control enumerations.
static GLint MinorVersion(void)
Queries the minor version number.
Definition: numeric_queries.hpp:63
static Bitfield< ContextFlagBit > Flags(void)
Query the context flags.
Definition: numeric_queries.hpp:111
GraphicsResetStatus
Graphics reset status enumeration.
Definition: graphics_reset_status.hpp:27
static ContextReleaseBehavior ReleaseBehavior(void)
Query the flush control behavior.
Definition: numeric_queries.hpp:127
static GLint64 Timestamp(void)
Query the current GL timestamp.
Definition: numeric_queries.hpp:78
static oglplus::GraphicsResetStatus GraphicsResetStatus(void)
Returns the graphics reset status.
Definition: numeric_queries.hpp:161
Wrapper for the GL numeric-query-related operations.
Definition: numeric_queries.hpp:33