Skip to main content

GLContextExtManual

Trait GLContextExtManual 

Source
pub trait GLContextExtManual: IsA<GLContext> + 'static {
    // Provided methods
    fn gl_context(&self) -> uintptr_t { ... }
    fn proc_address(&self, name: &str) -> uintptr_t { ... }
    fn thread_add<F: FnOnce(&Self) + Send>(&self, func: F) { ... }
}

Provided Methods§

Source

fn gl_context(&self) -> uintptr_t

Gets the backing OpenGL context used by self.

§Returns

The platform specific backing OpenGL context

Source

fn proc_address(&self, name: &str) -> uintptr_t

void (GSTGLAPI *PFN_glGetIntegerv) (GLenum name, GLint * ret) ]|

§name

an opengl function name

§Returns

a function pointer or None

Source

fn thread_add<F: FnOnce(&Self) + Send>(&self, func: F)

Execute func in the OpenGL thread of self with data

MT-safe

§func

a GstGLContextThreadFunc

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§