Trait glin::buffer_object::TypedBufferObject[][src]

pub trait TypedBufferObject<T> {
    fn id(&self) -> GLuint;
fn len(&self) -> usize;
fn capacity(&self) -> usize;
fn map_read<F: Fn(&[T])>(&self, flags: MapReadFlags, f: F) -> Result<()>
    where
        Self: Sized
;
fn copy_to<U, B: BufferRange<U> + WithBackendMut<T>>(&self, dst: &mut B)
    where
        Self: Sized
; fn bytes(&self) -> usize { ... }
fn capacity_bytes(&self) -> usize { ... }
fn stride(&self) -> usize { ... } }

Buffer object with a type

Required Methods

OpenGL id

Number of elements on the last update

Allocated capacity of the buffer in number of elements

Maps a buffer object's data store

Pass a closure that receives the mapped buffer to access it

see glMapBuffer

Copy one buffer into another

Provided Methods

Total bytes on the last update

Total capcacity of the buffer in bytes

Stride of the buffer type

Implementors