Module gl

Module gl 

Source
Available on crate feature runtime-opengl only.
Expand description

C API for the librashader OpenGL Runtime (libra_gl_*).

Structs§

filter_chain_gl_opt_t
Options for filter chain creation.
frame_gl_opt_t
Options for each OpenGL shader frame.
libra_image_gl_t
OpenGL parameters for an image.

Functions§

libra_gl_filter_chain_create
Create the filter chain given the shader preset.
libra_gl_filter_chain_frame
Draw a frame with the given parameters for the given filter chain.
libra_gl_filter_chain_free
Free a GL filter chain.
libra_gl_filter_chain_get_active_pass_count
Gets the number of active passes for this chain.
libra_gl_filter_chain_get_param
Gets a parameter for the filter chain.
libra_gl_filter_chain_set_active_pass_count
Sets the number of active passes for this chain.
libra_gl_filter_chain_set_param
Sets a parameter for the filter chain.

Type Aliases§

PFN_libra_gl_filter_chain_create
Function pointer definition for libra_gl_filter_chain_create
PFN_libra_gl_filter_chain_frame
Function pointer definition for libra_gl_filter_chain_frame
PFN_libra_gl_filter_chain_free
Function pointer definition for libra_gl_filter_chain_free
PFN_libra_gl_filter_chain_get_active_pass_count
Function pointer definition for libra_gl_filter_chain_get_active_pass_count
PFN_libra_gl_filter_chain_get_param
Function pointer definition for libra_gl_filter_chain_get_param
PFN_libra_gl_filter_chain_set_active_pass_count
Function pointer definition for libra_gl_filter_chain_set_active_pass_count
PFN_libra_gl_filter_chain_set_param
Function pointer definition for libra_gl_filter_chain_set_param
libra_gl_loader_t
A GL function loader that librashader needs to be initialized with.