Go to the documentation of this file. 1 #ifndef OGLPLUS_GL_API_CONFIG_HPP
9 #define OGLPLUS_GL_API_CONFIG_HPP
11 #include "../config/basic.hpp"
14 #ifndef OGLPLUS_HAS_GL
15 #if defined(GL_NO_ERROR)
16 #define OGLPLUS_HAS_GL 1
18 #define OGLPLUS_HAS_GL 0
20 #endif // OGLPLUS_HAS_GL
27 namespace eagine::oglp {
33 static constexpr
bool has_api =
true;
34 #if defined(__GLEW_H__)
35 static constexpr
bool has_static_api =
false;
37 static constexpr
bool has_static_api =
true;
99 static constexpr
bool has_api =
false;
100 static constexpr
bool has_static_api =
true;
138 return ec == GL_NO_ERROR;
140 EAGINE_MAYBE_UNUSED(ec);
148 #endif // OGLPLUS_GL_API_CONFIG_HPP
GLsizei sizei_type
Signed integer size type.
Definition: config.hpp:88
GLbitfield bitfield_type
Bit-field type.
Definition: config.hpp:55
GLchar char_type
String character type.
Definition: config.hpp:46
GLenum enum_type
Enumeration type.
Definition: config.hpp:52
static constexpr auto error_code_no_error(enum_type ec) noexcept -> bool
Tests if the specified error code represents no-error value.
Definition: config.hpp:136
GLint int_type
Signed integer type.
Definition: config.hpp:70
Class representing "none" / "nothing" values.
Definition: nothing.hpp:17
GLuint64 uint64_type
Unsigned 64-bit integer type.
Definition: config.hpp:79
GLuint uint_type
Unsigned integer type.
Definition: config.hpp:73
GLsizeiptr sizeiptr_type
Signed integer size type.
Definition: config.hpp:91
const GLvoid * const_void_ptr_type
Untyped const pointer type.
Definition: config.hpp:43
GLboolean bool_type
Boolean type.
Definition: config.hpp:49
GLushort ushort_type
Unsigned short integer type.
Definition: config.hpp:67
Collection of aliases for GL types.
Definition: config.hpp:31
GLubyte ubyte_type
Unsigned-byte type.
Definition: config.hpp:61
GLintptr intptr_type
Signed integer size type.
Definition: config.hpp:94
GLdouble double_type
Double-precision floating-point type.
Definition: config.hpp:85
GLfloat float_type
Floating-point type.
Definition: config.hpp:82
GLvoid * void_ptr_type
Untyped pointer type.
Definition: config.hpp:40
GLbyte byte_type
Byte type.
Definition: config.hpp:58
uint_type name_type
Object handle type.
Definition: config.hpp:124
static constexpr auto bool_true(bool_type b) noexcept -> bool
Converts bool_type value to native bool,.
Definition: config.hpp:127
GLint64 int64_type
Signed 64-bit integer type.
Definition: config.hpp:76
GLsync sync_type
Sync handle type.
Definition: config.hpp:97
GLshort short_type
Signed short integer type.
Definition: config.hpp:64