GlBuffer

Trait GlBuffer 

Source
pub trait GlBuffer:
    GlObject
    + GlBind
    + GlTarget {
    // Provided methods
    fn data<T: Sized>(&self, data: &Vec<T>, usage: BufferUsage) { ... }
    fn subdata<T: Sized>(&self, offset: isize, count: usize, data: &Vec<T>) { ... }
    fn bind_read(&self) { ... }
    fn bind_write(&self) { ... }
    fn copy(&self, read_offset: isize, write_offset: isize, size: isize) { ... }
    fn copy_from(
        &self,
        other: impl GlBuffer,
        read_offset: isize,
        write_offset: isize,
        size: isize,
    ) { ... }
    fn is_binded(&self) -> bool { ... }
}

Provided Methods§

Source

fn data<T: Sized>(&self, data: &Vec<T>, usage: BufferUsage)

Source

fn subdata<T: Sized>(&self, offset: isize, count: usize, data: &Vec<T>)

Source

fn bind_read(&self)

Source

fn bind_write(&self)

Source

fn copy(&self, read_offset: isize, write_offset: isize, size: isize)

Source

fn copy_from( &self, other: impl GlBuffer, read_offset: isize, write_offset: isize, size: isize, )

Source

fn is_binded(&self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§