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§

source

fn activate(&self, activate: bool) -> Result<(), BoolError>

source

fn can_share(&self, other_context: &impl IsA<GLContext>) -> bool

source

fn check_feature(&self, feature: &str) -> bool

source

fn check_framebuffer_status(&self, fbo_target: u32) -> bool

source

fn check_gl_version(&self, api: GLAPI, maj: i32, min: i32) -> bool

source

fn clear_framebuffer(&self)

source

fn clear_shader(&self)

source

fn create( &self, other_context: Option<&impl IsA<GLContext>>, ) -> Result<(), Error>

source

fn destroy(&self)

source

fn fill_info(&self) -> Result<(), Error>

source

fn display(&self) -> GLDisplay

source

fn gl_api(&self) -> GLAPI

source

fn gl_platform(&self) -> GLPlatform

source

fn gl_platform_version(&self) -> (i32, i32)

source

fn gl_version(&self) -> (i32, i32)

source

fn window(&self) -> Option<GLWindow>

source

fn is_shared(&self) -> bool

source

fn set_shared_with(&self, share: &impl IsA<GLContext>)

source

fn set_window(&self, window: impl IsA<GLWindow>) -> Result<(), BoolError>

source

fn supports_glsl_profile_version( &self, version: GLSLVersion, profile: GLSLProfile, ) -> bool

source

fn swap_buffers(&self)

Object Safety§

This trait is not object safe.

Implementors§