Trait gstreamer_gl::prelude::GLContextExt
source · pub trait GLContextExt:
IsA<GLContext>
+ Sealed
+ 'static {
Show 21 methods
// Provided methods
fn activate(&self, activate: bool) -> Result<(), BoolError> { ... }
fn can_share(&self, other_context: &impl IsA<GLContext>) -> bool { ... }
fn check_feature(&self, feature: &str) -> bool { ... }
fn check_framebuffer_status(&self, fbo_target: u32) -> bool { ... }
fn check_gl_version(&self, api: GLAPI, maj: i32, min: i32) -> bool { ... }
fn clear_framebuffer(&self) { ... }
fn clear_shader(&self) { ... }
fn create(
&self,
other_context: Option<&impl IsA<GLContext>>,
) -> Result<(), Error> { ... }
fn destroy(&self) { ... }
fn fill_info(&self) -> Result<(), Error> { ... }
fn display(&self) -> GLDisplay { ... }
fn gl_api(&self) -> GLAPI { ... }
fn gl_platform(&self) -> GLPlatform { ... }
fn gl_platform_version(&self) -> (i32, i32) { ... }
fn gl_version(&self) -> (i32, i32) { ... }
fn window(&self) -> Option<GLWindow> { ... }
fn is_shared(&self) -> bool { ... }
fn set_shared_with(&self, share: &impl IsA<GLContext>) { ... }
fn set_window(&self, window: impl IsA<GLWindow>) -> Result<(), BoolError> { ... }
fn supports_glsl_profile_version(
&self,
version: GLSLVersion,
profile: GLSLProfile,
) -> bool { ... }
fn swap_buffers(&self) { ... }
}
Provided Methods§
fn activate(&self, activate: bool) -> Result<(), BoolError>
fn check_feature(&self, feature: &str) -> bool
fn check_framebuffer_status(&self, fbo_target: u32) -> bool
fn check_gl_version(&self, api: GLAPI, maj: i32, min: i32) -> bool
fn clear_framebuffer(&self)
fn clear_shader(&self)
fn create( &self, other_context: Option<&impl IsA<GLContext>>, ) -> Result<(), Error>
fn destroy(&self)
fn fill_info(&self) -> Result<(), Error>
fn display(&self) -> GLDisplay
fn gl_api(&self) -> GLAPI
fn gl_platform(&self) -> GLPlatform
fn gl_platform_version(&self) -> (i32, i32)
fn gl_version(&self) -> (i32, i32)
fn window(&self) -> Option<GLWindow>
fn set_window(&self, window: impl IsA<GLWindow>) -> Result<(), BoolError>
fn supports_glsl_profile_version( &self, version: GLSLVersion, profile: GLSLProfile, ) -> bool
fn swap_buffers(&self)
Object Safety§
This trait is not object safe.