13 #ifndef OGLPLUS_CONTEXT_STRING_QUERIES_1202210920_HPP
14 #define OGLPLUS_CONTEXT_STRING_QUERIES_1202210920_HPP
27 GLuint _index, _count;
32 StrQueryRange(GLuint n, GLenum p)
38 bool Empty(
void)
const
40 assert(_index <= _count);
41 return _index == _count;
44 std::size_t Size(
void)
const
52 const GLubyte* result = OGLPLUS_GLFUNC(GetStringi)(
56 OGLPLUS_VERIFY_SIMPLE(GetStringi);
57 return StrCRef((
const GLchar*)result);
87 const GLubyte* result = OGLPLUS_GLFUNC(
GetString)(GLenum(query));
114 #if OGLPLUS_DOCUMENTATION_ONLY || GL_VERSION_4_3
129 OGLPLUS_GLFUNC(GetIntegerv)(
130 GL_NUM_SHADING_LANGUAGE_VERSIONS,
133 OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
134 return GLuint(result);
150 const GLubyte* result = OGLPLUS_GLFUNC(GetStringi)(
151 GL_SHADING_LANGUAGE_VERSION,
154 OGLPLUS_VERIFY_SIMPLE(GetStringi);
157 #endif // GL_VERSION_4_3
159 #if OGLPLUS_DOCUMENTATION_ONLY
171 return aux::StrQueryRange(
173 GL_SHADING_LANGUAGE_VERSION
213 OGLPLUS_GLFUNC(GetIntegerv)(GL_NUM_EXTENSIONS, &result);
214 OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
215 return GLuint(result);
231 const GLubyte* result = OGLPLUS_GLFUNC(GetStringi)(
235 OGLPLUS_VERIFY_SIMPLE(GetStringi);
239 #if OGLPLUS_DOCUMENTATION_ONLY
250 return aux::StrQueryRange(
261 #endif // include guard
OpenGL string query enumeration.
Wrapper for the GL string-query-related operations.
Definition: string_queries.hpp:75
Wrapper class for all ranges that can be used for Element traversal.
Definition: ranges.hpp:39
static GLuint NumExtensions(void)
Queries the number of extension strings.
Definition: string_queries.hpp:210
static const char * ShadingLanguageVersion(void)
Returns the shading language version string.
Definition: string_queries.hpp:184
static const GLubyte * Extensions(GLuint index)
Returns the name of the index -th extension.
Definition: string_queries.hpp:229
::std::basic_string< ALchar > String
static const GLubyte * GetString(StringQuery query)
Queries a string describing GL properties.
Definition: string_queries.hpp:85
static Range< StrCRef > Extensions(void)
Returns a range of extension strings.
String const reference wrapper template.
Definition: ref_tpl.hpp:72
StringQuery
OpenGL string query enumeration.
Definition: string_query.hpp:27
Helper macro for optional checking of availability of GL function.
static const char * Renderer(void)
Returns the renderer name.
Definition: string_queries.hpp:195
static const GLubyte * ShadingLanguageVersion(GLuint index)
Returns the name of index -th supported shading language version.
Definition: string_queries.hpp:148
static GLuint NumShadingLanguageVersions(void)
Queries the number of supported shading language versions.
Definition: string_queries.hpp:126
StrCRefTpl< GLchar > StrCRef
String const reference wrapper.
Definition: ref.hpp:21
SHADING_LANGUAGE_VERSION.
static const char * Vendor(void)
Returns the vendor name.
Definition: string_queries.hpp:98
static Range< String > ShadingLanguageVersions(void)
Returns a range of supported GLSL version strings.
static const char * Version(void)
Returns the version string.
Definition: string_queries.hpp:109