47extern bool ogl_Init(
void* (load)(
const char*),
void* hdc);
48#elif !OS_MACOSX && !OS_MAC && !CONFIG2_GLES
49extern bool ogl_Init(
void* (load)(
const char*),
void* display,
int subsystem);
51extern bool ogl_Init(
void* (load)(
const char*));
117# define ogl_WarnIfError()
119# define ogl_WarnIfError() ogl_WarnIfErrorLoc(__FILE__, __LINE__)
#define SENTINEL_ARG
Definition: code_annotation.h:268
const char * ogl_ExtensionString()
get a list of all supported extensions.
Definition: ogl.cpp:72
const char * ogl_GetErrorName(GLenum err)
get a name of the error.
Definition: ogl.cpp:337
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:256
bool ogl_Init(void *(load)(const char *), void *display, int subsystem)
initialization: import extension function pointers and do feature detect.
Definition: ogl.cpp:432
void ogl_WarnIfErrorLoc(const char *file, int line)
raise a warning (break into the debugger) if an OpenGL error is pending.
Definition: ogl.cpp:361
bool ogl_HaveVersion(int major, int minor)
make sure the OpenGL implementation version matches or is newer than the given version.
Definition: ogl.cpp:232
void ogl_SetVsyncEnabled(bool enabled)
Change vsync state.
Definition: ogl.cpp:519
bool ogl_SquelchError(GLenum err_to_ignore)
ignore and reset the specified OpenGL error.
Definition: ogl.cpp:391
bool ogl_HaveExtension(const char *ext)
Check whether the given OpenGL extension is supported.
Definition: ogl.cpp:191