OpenGlControlBaseImpl
trait · ferroui-opengl · v0.5.0
trait OpenGlControlBaseImpl: ControlImpl + $crate::Upcast<OpenGlControlBase>
The overridable members introduced by the class.
Members
on_open_gl_init
fn on_open_gl_init(this: &Self, gl: &GlInterface)
Called when the OpenGL context is first created.
gl is the interface for making OpenGL calls. Use GlInterface::get_proc_address
to access additional APIs not covered by GlInterface.
on_open_gl_deinit
fn on_open_gl_deinit(this: &Self, gl: &GlInterface)
Called when the OpenGL context is being destroyed.
gl is the interface for making OpenGL calls. Use GlInterface::get_proc_address
to access additional APIs not covered by GlInterface.
on_open_gl_lost
fn on_open_gl_lost(this: &Self)
Called when the OpenGL context is lost and cannot be recovered.
on_open_gl_render
fn on_open_gl_render(this: &Self, gl: &GlInterface, fb: i32)
Called to render the OpenGL content for the current frame.
gl is the interface for making OpenGL calls. Use GlInterface::get_proc_address
to access additional APIs not covered by GlInterface. fb is the framebuffer
ID to render into.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.