Struct glin::buffer_object::SharedBufferImmutable[][src]

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

Wrapper around a BufferObjectImmutable with internal reference counting

Useful for example when the same buffer or ranges of the same buffer are to be used in different VAOs

Methods

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

Get a mutable range from the buffer

Useful to do operations on portions of the buffer

Panics if the range is out of bounds

Trait Implementations

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

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

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

Formats the value using the given formatter. Read more

impl<T: Eq> Eq for SharedBufferImmutable<T>
[src]

impl<T: PartialEq> PartialEq for SharedBufferImmutable<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> Clone for SharedBufferImmutable<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<T> !Send for SharedBufferImmutable<T>

impl<T> !Sync for SharedBufferImmutable<T>