|
const char * | ogl_ExtensionString () |
| get a list of all supported extensions. More...
|
|
static bool | isImplementedInCore (const char *ext) |
|
bool | ogl_HaveExtension (const char *ext) |
| Check whether the given OpenGL extension is supported. More...
|
|
bool | ogl_HaveVersion (int major, int minor) |
| make sure the OpenGL implementation version matches or is newer than the given version. More...
|
|
const char * | ogl_HaveExtensions (int dummy,...) |
| check if a list of extensions are all supported (as determined by ogl_HaveExtension). More...
|
|
static void GLAD_API_PTR | dummy_glDrawRangeElementsEXT (GLenum mode, GLuint, GLuint, GLsizei count, GLenum type, GLvoid *indices) |
|
static void GLAD_API_PTR | dummy_glActiveTextureARB (GLenum texture) |
|
static void GLAD_API_PTR | dummy_glClientActiveTextureARB (GLenum texture) |
|
static void GLAD_API_PTR | dummy_glMultiTexCoord2fARB (GLenum target, GLfloat s, GLfloat t) |
|
static void GLAD_API_PTR | dummy_glMultiTexCoord3fARB (GLenum target, GLfloat s, GLfloat t, GLfloat r) |
|
static void | enableDummyFunctions () |
|
const char * | ogl_GetErrorName (GLenum err) |
| get a name of the error. More...
|
|
static void | dump_gl_error (GLenum err) |
|
void | ogl_WarnIfErrorLoc (const char *file, int line) |
| raise a warning (break into the debugger) if an OpenGL error is pending. More...
|
|
bool | ogl_SquelchError (GLenum err_to_ignore) |
| ignore and reset the specified OpenGL error. More...
|
|
bool | ogl_Init (void *(load)(const char *), void *display, int subsystem) |
| initialization: import extension function pointers and do feature detect. More...
|
|
void | ogl_SetVsyncEnabled (bool enabled) |
| Change vsync state. More...
|
|
bool ogl_SquelchError |
( |
GLenum |
err_to_ignore | ) |
|
ignore and reset the specified OpenGL error.
this is useful for suppressing annoying error messages, e.g. "invalid enum" for GL_CLAMP_TO_EDGE even though we've already warned the user that their OpenGL implementation is too old.
call after the fact, i.e. the error has been raised. if another or different error is pending, those are reported immediately.
- Parameters
-
err_to_ignore | one of the glGetError enums. |
- Returns
- true if the requested error was seen and ignored
void ogl_WarnIfErrorLoc |
( |
const char * |
file, |
|
|
int |
line |
|
) |
| |
raise a warning (break into the debugger) if an OpenGL error is pending.
resets the OpenGL error state afterwards.
when an error is reported, insert calls to this in a binary-search scheme to quickly narrow down the actual error location.
reports a bogus invalid_operation error if called before OpenGL is initialized, so don't!
disabled in release mode for efficiency and to avoid annoying errors.