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()
182 #endif // #ifndef INCLUDED_OGL
bool ogl_SquelchError(GLenum err_to_ignore)
ignore and reset the specified OpenGL error.
bool ogl_HaveVersion(const char *desired_version)
make sure the OpenGL implementation version matches or is newer than the given version.
unsigned long long uint64_t
GLint ogl_max_tex_units
[pixels]
const char * ogl_ExtensionString()
get a list of all supported extensions.
bool ogl_HaveExtension(const char *ext)
check if an extension is supported by the OpenGL implementation.
void ogl_Init()
initialization: import extension function pointers and do feature detect.
void ogl_WarnIfError()
raise a warning (break into the debugger) if an OpenGL error is pending.
const char * ogl_HaveExtensions(int dummy,...)
check if a list of extensions are all supported (as determined by ogl_HaveExtension).