Struct glitter::context::buffer_context::ArrayBufferBinder
[−]
[src]
pub struct ArrayBufferBinder { /* fields omitted */ }
The OpenGL state representing the GL_ARRAY_BUFFER
target.
Methods
impl ArrayBufferBinder
[src]
pub unsafe fn current() -> Self
[src]
Get the current GL_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) -> ArrayBufferBinding<'a>
[src]
Bind a buffer to the GL_ARRAY_BUFFER
target, returning a binding.