RGFW
A multi-platform single-header very simple-to-use framework library for creating GUI Libraries or simple GUI programs.
Loading...
Searching...
No Matches
Typedefs | Functions
Graphics_API

Typedefs

typedef void(* RGFW_proc) (void)
 

Functions

RGFWDEF void RGFW_window_makeCurrent (RGFW_window *win)
 
RGFWDEF RGFW_windowRGFW_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)
 

Detailed Description

Typedef Documentation

◆ RGFW_proc

typedef void(* RGFW_proc) (void)

Function Documentation

◆ RGFW_ENUM()

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

◆ RGFW_extensionSupported()

RGFWDEF RGFW_bool RGFW_extensionSupported ( const char *  extension,
size_t  len 
)

check if whether the specified API extension is supported by the current OpenGL or OpenGL ES context

◆ RGFW_extensionSupportedPlatform()

RGFWDEF RGFW_bool RGFW_extensionSupportedPlatform ( const char *  extension,
size_t  len 
)

check if whether the specified platform-specific API extension is supported by the current OpenGL or OpenGL ES context

◆ RGFW_getCurrent()

RGFWDEF RGFW_window * RGFW_getCurrent ( void  )

get current RGFW window graphics context

◆ RGFW_getCurrent_OpenGL()

void * RGFW_getCurrent_OpenGL ( void  )

get the current context (OpenGL backend (GLX) (WGL) (EGL) (cocoa) (webgl))

◆ RGFW_getProcAddress()

RGFWDEF RGFW_proc RGFW_getProcAddress ( const char *  procname)

get native opengl proc address

◆ RGFW_setGLHint()

RGFWDEF void RGFW_setGLHint ( RGFW_glHints  hint,
i32  value 
)

◆ RGFW_window_freeOpenGL()

RGFWDEF void RGFW_window_freeOpenGL ( RGFW_window win)

◆ RGFW_window_initOpenGL()

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)

◆ RGFW_window_makeCurrent()

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

◆ RGFW_window_makeCurrent_OpenGL()

RGFWDEF void RGFW_window_makeCurrent_OpenGL ( RGFW_window win)

to be called by RGFW_window_makeCurrent

◆ RGFW_window_swapBuffers()

RGFWDEF void RGFW_window_swapBuffers ( RGFW_window win)

swap the rendering buffer

◆ RGFW_window_swapBuffers_OpenGL()

RGFWDEF void RGFW_window_swapBuffers_OpenGL ( RGFW_window win)

swap opengl buffer (only) called by RGFW_window_swapInterval

◆ RGFW_window_swapBuffers_software()

RGFWDEF void RGFW_window_swapBuffers_software ( RGFW_window win)

◆ RGFW_window_swapInterval()

RGFWDEF void RGFW_window_swapInterval ( RGFW_window win,
i32  swapInterval 
)

render the software rendering buffer (this is called by RGFW_window_swapInterval)