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