![]() |
RGFW
A multi-platform single-header very simple-to-use framework library for creating GUI Libraries or simple GUI programs.
|
Typedefs | |
typedef void(* | RGFW_proc) (void) |
Functions | |
RGFWDEF void | RGFW_window_makeCurrent (RGFW_window *win) |
RGFWDEF RGFW_window * | RGFW_getCurrent (void) |
RGFWDEF void | RGFW_window_swapBuffers (RGFW_window *win) |
RGFWDEF void | RGFW_window_swapInterval (RGFW_window *win, i32 swapInterval) |
RGFWDEF void | RGFW_window_swapBuffers_software (RGFW_window *win) |
RGFWDEF void | RGFW_window_initOpenGL (RGFW_window *win) |
RGFWDEF void | RGFW_window_freeOpenGL (RGFW_window *win) |
typedef | RGFW_ENUM (u8, RGFW_glHints) |
RGFWDEF void | RGFW_setGLHint (RGFW_glHints hint, i32 value) |
RGFWDEF RGFW_bool | RGFW_extensionSupported (const char *extension, size_t len) |
RGFWDEF RGFW_proc | RGFW_getProcAddress (const char *procname) |
RGFWDEF void | RGFW_window_makeCurrent_OpenGL (RGFW_window *win) |
RGFWDEF void | RGFW_window_swapBuffers_OpenGL (RGFW_window *win) |
void * | RGFW_getCurrent_OpenGL (void) |
RGFWDEF RGFW_bool | RGFW_extensionSupportedPlatform (const char *extension, size_t len) |
typedef void(* RGFW_proc) (void) |
typedef RGFW_ENUM | ( | u8 | , |
RGFW_glHints | |||
) |
OpenGL init hints
< set stencil buffer bit size (8 by default)
< set number of sampiling buffers (4 by default)
< use GL_STEREO (GL_FALSE by default)
< number of aux buffers (0 by default)
< request double buffering
< set RGBA bit sizes
< set accumulated RGBA bit sizes
< request sRGA
< request a robust context
< request opengl debugging
< request no opengl errors
< the final hint (not for setting)
< RGFW_glProfile options
check if whether the specified API extension is supported by the current OpenGL or OpenGL ES context
check if whether the specified platform-specific API extension is supported by the current OpenGL or OpenGL ES context
RGFWDEF RGFW_window * RGFW_getCurrent | ( | void | ) |
get current RGFW window graphics context
void * RGFW_getCurrent_OpenGL | ( | void | ) |
get the current context (OpenGL backend (GLX) (WGL) (EGL) (cocoa) (webgl))
RGFWDEF void RGFW_window_freeOpenGL | ( | RGFW_window * | win | ) |
RGFWDEF void RGFW_window_initOpenGL | ( | RGFW_window * | win | ) |
native API functions
< create an opengl context for the RGFW window, run by createWindow by default (unless the RGFW_windowNoInitAPI is included) called by RGFW_window_close
by default (unless the RGFW_windowNoInitAPI is set)
RGFWDEF void RGFW_window_makeCurrent | ( | RGFW_window * | win | ) |
< make the window the current opengl drawing context
NOTE: if you want to switch the graphics context's thread, you have to run RGFW_window_makeCurrent(NULL); on the old thread then RGFW_window_makeCurrent(valid_window) on the new thread
RGFWDEF void RGFW_window_makeCurrent_OpenGL | ( | RGFW_window * | win | ) |
to be called by RGFW_window_makeCurrent
RGFWDEF void RGFW_window_swapBuffers | ( | RGFW_window * | win | ) |
swap the rendering buffer
RGFWDEF void RGFW_window_swapBuffers_OpenGL | ( | RGFW_window * | win | ) |
swap opengl buffer (only) called by RGFW_window_swapInterval
RGFWDEF void RGFW_window_swapBuffers_software | ( | RGFW_window * | win | ) |
RGFWDEF void RGFW_window_swapInterval | ( | RGFW_window * | win, |
i32 | swapInterval | ||
) |
render the software rendering buffer (this is called by RGFW_window_swapInterval)