90 #ifndef GL_VERSION_3_0 91 # define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904 92 # define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905 94 #ifndef GL_EXT_transform_feedback 95 # define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT 0x8C8A 96 # define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT 0x8C8B 97 # define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT 0x8C80 99 #ifndef GL_ARB_geometry_shader4 100 # define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB 0x8C29 101 # define GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB 0x8DDD 102 # define GL_MAX_VERTEX_VARYING_COMPONENTS_ARB 0x8DDE 103 # define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB 0x8DDF 104 # define GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB 0x8DE0 105 # define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB 0x8DE1 107 #ifndef GL_ARB_timer_query 108 # define GL_TIME_ELAPSED 0x88BF 109 # define GL_TIMESTAMP 0x8E28 111 #ifndef GL_ARB_framebuffer_object 112 # define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506 115 #ifndef GL_EXT_texture_array 116 # define GL_MAX_ARRAY_TEXTURE_LAYERS_EXT 0x88FF 126 # define GL_CALL_CONV __stdcall 128 # define GL_CALL_CONV 130 #define FUNC(ret, name, params) EXTERN_C ret (GL_CALL_CONV *p##name) params; 131 #define FUNC2(ret, nameARB, nameCore, version, params) EXTERN_C ret (GL_CALL_CONV *p##nameARB) params; 132 #define FUNC3(ret, nameARB, nameCore, version, params) EXTERN_C ret (GL_CALL_CONV *p##nameCore) params; 157 # define ogl_WarnIfError() 159 # define ogl_WarnIfError() ogl_WarnIfErrorLoc(__FILE__, __LINE__) 184 #endif // #ifndef INCLUDED_OGL GLint ogl_max_tex_units
[pixels]
Definition: ogl.cpp:466
int64_t GLint64
Definition: ogl.h:120
bool ogl_HaveVersion(const char *version)
make sure the OpenGL implementation version matches or is newer than the given version.
Definition: ogl.cpp:219
void ogl_WarnIfErrorLoc(const char *file, int line)
raise a warning (break into the debugger) if an OpenGL error is pending.
Definition: ogl.cpp:396
#define SENTINEL_ARG
Definition: code_annotation.h:254
uint64_t GLuint64
Definition: ogl.h:121
bool ogl_HaveExtension(const char *ext)
check if an extension is supported by the OpenGL implementation.
Definition: ogl.cpp:187
unsigned long long uint64_t
Definition: wposix_types.h:57
const char * ogl_ExtensionString()
get a list of all supported extensions.
Definition: ogl.cpp:68
bool ogl_SquelchError(GLenum err_to_ignore)
ignore and reset the specified OpenGL error.
Definition: ogl.cpp:427
GLint ogl_max_tex_size
Definition: ogl.cpp:465
const char * ogl_HaveExtensions(int dummy,...) SENTINEL_ARG
check if a list of extensions are all supported (as determined by ogl_HaveExtension).
Definition: ogl.cpp:266
void ogl_Init()
initialization: import extension function pointers and do feature detect.
Definition: ogl.cpp:470
long long int64_t
Definition: wposix_types.h:48