Struct glitter::context::buffer_context::ElementArrayBufferBinder
[−]
[src]
pub struct ElementArrayBufferBinder { // some fields omitted }
The OpenGL state representing the GL_ELEMENT_ARRAY_BUFFER
target.
Methods
impl ElementArrayBufferBinder
[src]
unsafe fn current() -> Self
Get the current GL_ELEMENT_ARRAY_BUFFER
binder.
Safety
The same rules apply to this method as the
ContextOf::current_context()
method.
fn bind<'a>(&mut self, buffer: &'a mut Buffer) -> ElementArrayBufferBinding<'a>
Bind a buffer to the GL_ELEMENT_ARRAY_BUFFER
target, returning
a binding.