Trait glin::buffer_object::TypedBufferObjectMut [−][src]
pub trait TypedBufferObjectMut<T>: TypedBufferObject<T> { fn map_write<F: Fn(&mut [T])>(
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<()>
where
Self: Sized; fn map_read_write<F: Fn(&mut [T])>(
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<()>
where
Self: Sized; }
Buffer object with a type
Required Methods
fn map_write<F: Fn(&mut [T])>(
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<()> where
Self: Sized,
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<()> where
Self: Sized,
Maps a buffer object's data store
Pass a closure that receives the mapped buffer to access it
see glMapBuffer
fn map_read_write<F: Fn(&mut [T])>(
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<()> where
Self: Sized,
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<()> where
Self: Sized,
Maps a buffer object's data store
Pass a closure that receives the mapped buffer to access it
see glMapBuffer
Implementors
impl<'a, T: 'static> TypedBufferObjectMut<T> for BufferObject<T>
impl<'a, T: 'static> TypedBufferObjectMut<T> for BufferObjectImmutable<T>
impl<'a, T: 'static> TypedBufferObjectMut<T> for SharedBuffer<T>
impl<'a, T: 'static> TypedBufferObjectMut<T> for SharedBufferImmutable<T>
impl<'a, T: 'static, B: TypedBufferObject<T> + MapRangeMut<T> + WithBackend<T>, BB: BorrowMut<B>> TypedBufferObjectMut<T> for Range<T, B, BB>