Struct glitter::context::buffer_context::BufferBinderOf
[−]
[src]
pub struct BufferBinderOf<A, E> { // some fields omitted }
This type holds all of the OpenGL state releated buffer objects. See the
ContextOf
docs for more details.
Methods
impl<A, E> BufferBinderOf<A, E>
[src]
unsafe fn current() -> BufferBinder
Get the current buffer-object binders.
Safety
The same rules apply to this method as the
ContextOf::current_context()
method.
fn swap_array<NA>(self, new_array: NA) -> (A, BufferBinderOf<NA, E>)
Replace the array-buffer-related context with a new value, returning the old value and a new buffer context.
fn swap_element_array<NE>(self, new_element_array: NE) -> (E, BufferBinderOf<A, NE>)
Replace the element-array-buffer-related context with a new value, returning the old value and a new buffer context.