Trait gstreamer_gl::prelude::GLFramebufferExt

source ·
pub trait GLFramebufferExt:
    IsA<GLFramebuffer>
    + Sealed
    + 'static {
    // Provided methods
    unsafe fn attach(&self, attachment_point: u32, mem: &mut GLBaseMemory) { ... }
    fn bind(&self) { ... }
    fn effective_dimensions(&self) -> (u32, u32) { ... }
    fn id(&self) -> u32 { ... }
}
Expand description

Trait containing all GLFramebuffer methods.

§Implementors

GLFramebuffer

Provided Methods§

source

unsafe fn attach(&self, attachment_point: u32, mem: &mut GLBaseMemory)

attach mem to attachment_point

Must be called with the same OpenGL context current that self was created with.

§attachment_point

the OpenGL attachment point to bind mem to

§mem

the memory object to bind to attachment_point

source

fn bind(&self)

Bind self into the current thread

Must be called with the same OpenGL context current that self was created with.

source

fn effective_dimensions(&self) -> (u32, u32)

Retrieve the effective dimensions from the current attachments attached to self.

§Returns
§width

output width

§height

output height

source

fn id(&self) -> u32

§Returns

the OpenGL id for self

Object Safety§

This trait is not object safe.

Implementors§