13 #ifndef OGLPLUS_CONTEXT_LIMIT_QUERIES_1201040722_HPP
14 #define OGLPLUS_CONTEXT_LIMIT_QUERIES_1201040722_HPP
37 OGLPLUS_GLFUNC(GetIntegerv)(GLenum(query), &result);
38 OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
50 OGLPLUS_GLFUNC(GetIntegeri_v)(GLenum(query), index, &result);
51 OGLPLUS_VERIFY_SIMPLE(GetIntegeri_v);
63 OGLPLUS_GLFUNC(GetFloatv)(GLenum(query), &result);
64 OGLPLUS_VERIFY_SIMPLE(GetFloatv);
68 #if OGLPLUS_DOCUMENTATION_ONLY || GL_VERSION_4_1 || GL_ARB_viewport_array
77 OGLPLUS_GLFUNC(GetFloati_v)(GLenum(query), index, &result);
78 OGLPLUS_VERIFY_SIMPLE(GetFloati_v);
83 static void ThrowIfOverLimit(
89 OGLPLUS_HANDLE_ERROR_IF(
92 LimitError::Message(),
107 ThrowIfOverLimit(limit, value,
IntLimit(limit));
119 ThrowIfOverLimit(limit, value,
IntLimit(limit, index));
126 #endif // include guard
static GLint IntLimit(LimitQuery query)
Gets the implementation-dependent limit value.
Definition: limit_queries.hpp:34
Exception indicating exceeded implementation-defined limits.
Definition: limit.hpp:30
StrCRef EnumValueName(Enum enum_value)
Returns the name of the GL enumerated value for an OGLplus enum value.
static void RequireAtLeast(LimitQuery limit, GLuint index, GLint value)
Raises a LimitError if value is greater than the specified limit.
Definition: limit_queries.hpp:117
LimitQuery
Enumeration of implementation-dependent limit queries.
Definition: limit_query.hpp:27
Wrapper for implementation-dependent limit queries.
Definition: limit_queries.hpp:26
Helper macro for optional checking of availability of GL function.
static GLfloat FloatLimit(LimitQuery query)
Gets the implementation-dependent limit value.
Definition: limit_queries.hpp:60
static void RequireAtLeast(LimitQuery limit, GLint value)
Raises a LimitError if value is greater than the specified limit.
Definition: limit_queries.hpp:105
OpenGL min/max implementation-dependent limit queries.
static GLfloat FloatLimit(LimitQuery query, GLuint index)
Gets the implementation-dependent indexed limit value.
Definition: limit_queries.hpp:74
static GLint IntLimit(LimitQuery query, GLuint index)
Gets the implementation-dependent indexed limit value.
Definition: limit_queries.hpp:47