Trait rin::gl::buffer_object::TypedBufferObjectMut[][src]

pub trait TypedBufferObjectMut<T>: TypedBufferObject<T> {
    fn map_write<F>(&mut self, flags: MapWriteFlags, f: F) -> Result<(), Error>
    where
        F: Fn(&mut [T])
;
fn map_read_write<F>(
        &mut self,
        flags: MapReadWriteFlags,
        f: F
    ) -> Result<(), Error>
    where
        F: Fn(&mut [T])
; }

Buffer object with a type

Required Methods

Maps a buffer object's data store

Pass a closure that receives the mapped buffer to access it

see glMapBuffer

Maps a buffer object's data store

Pass a closure that receives the mapped buffer to access it

see glMapBuffer

Implementors