Struct glin::buffer_object::BufferObject[][src]

pub struct BufferObject<T> { /* fields omitted */ }

A mutable buffer object allocated with gl(Named)BufferData

Methods

impl<T: 'static> BufferObject<T>
[src]

Loads the passed data into the buffer (re)allocating it

see: gl(Named)BufferData

Loads the passed data at the beginning of the buffer

Will panic if the buffer is not big enough or not allocated at all

see: gl(Named)BufferSubData

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

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

Number of elements on the last update

Allocated capacity of the buffer in number of elements

Total bytes on the last update

Total capcacity of the buffer in bytes

OpenGL id

Stride of the buffer type

Consume into a shared buffer

Get a range from the buffer

Useful to do operations on portions of the buffer

Panics if the range is out of bounds

Get a mutable range from the buffer

Useful to do operations on portions of the buffer

Panics if the range is out of bounds

Consumes the buffer into a range

Panics if the range is out of bounds

Trait Implementations

impl<T: Debug> Debug for BufferObject<T>
[src]

Formats the value using the given formatter. Read more

impl<T> Send for BufferObject<T>
[src]

impl<T> PartialEq for BufferObject<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T> Eq for BufferObject<T>
[src]

impl<'a, T: 'static> TypedBufferObject<T> for BufferObject<T>
[src]

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 Read more

Copy one buffer into another

Total bytes on the last update

Total capcacity of the buffer in bytes

Stride of the buffer type

impl<'a, T: 'static> TypedBufferObjectMut<T> for BufferObject<T>
[src]

Maps a buffer object's data store Read more

Maps a buffer object's data store Read more

impl<'a, T: 'static> BufferRange<T> for BufferObject<T>
[src]

impl<'a, T: 'static> BufferRangeMut<T> for BufferObject<T>
[src]

Auto Trait Implementations

impl<T> !Sync for BufferObject<T>