Changeset View
Changeset View
Standalone View
Standalone View
source/lib/ogl.h
Show All 35 Lines | |||||
#else | #else | ||||
# include <glad/gl.h> | # include <glad/gl.h> | ||||
#endif | #endif | ||||
/** | /** | ||||
* initialization: import extension function pointers and do feature detect. | * initialization: import extension function pointers and do feature detect. | ||||
* call before using any other function. | * call before using any other function. | ||||
* fails if OpenGL not ready for use. | * fails if OpenGL not ready for use. | ||||
* TODO: move loading functionality to GL backend. | |||||
**/ | **/ | ||||
#if OS_WIN | #if OS_WIN | ||||
extern bool ogl_Init(void* (load)(const char*), void* hdc); | extern bool ogl_Init(void* (load)(const char*), void* hdc); | ||||
#elif !OS_MACOSX && !OS_MAC && !CONFIG2_GLES | #elif !OS_MACOSX && !OS_MAC && !CONFIG2_GLES | ||||
extern bool ogl_Init(void* (load)(const char*), void* display); | extern bool ogl_Init(void* (load)(const char*), void* display, int subsystem); | ||||
#else | #else | ||||
extern bool ogl_Init(void* (load)(const char*)); | extern bool ogl_Init(void* (load)(const char*)); | ||||
#endif | #endif | ||||
/** | /** | ||||
* Change vsync state. | * Change vsync state. | ||||
**/ | **/ | ||||
extern void ogl_SetVsyncEnabled(bool enabled); | extern void ogl_SetVsyncEnabled(bool enabled); | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator