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