Struct glin::buffer_object::BufferObjectImmutable[][src]

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

Inmmutable buffer object allocated with gl(Named)BufferStorage

Inmmutability here refers to the same concept OpenGL understands by it. The data in the buffer can still be modified but it can't be reallocated

Methods

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

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 BufferObjectImmutable<T>
[src]

Formats the value using the given formatter. Read more

impl<T> PartialEq for BufferObjectImmutable<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 BufferObjectImmutable<T>
[src]

impl<T: 'static> TypedBufferObject<T> for BufferObjectImmutable<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 BufferObjectImmutable<T>
[src]

Maps a buffer object's data store Read more

Maps a buffer object's data store Read more

impl<T: 'static> BufferRange<T> for BufferObjectImmutable<T>
[src]

impl<T: 'static> BufferRangeMut<T> for BufferObjectImmutable<T>
[src]

Auto Trait Implementations

impl<T> !Send for BufferObjectImmutable<T>

impl<T> !Sync for BufferObjectImmutable<T>