Skip to main content

GLFramebufferExt

Trait GLFramebufferExt 

Source
pub trait GLFramebufferExt: IsA<GLFramebuffer> + '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

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§