Struct glin::SharedBuffer[][src]

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

Wrapper around a BufferObject 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> SharedBuffer<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 SharedBuffer<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 SharedBuffer<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 SharedBuffer<T>
[src]

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

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

Formats the value using the given formatter. Read more

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<T> !Send for SharedBuffer<T>

impl<T> !Sync for SharedBuffer<T>