Struct glitter::context::buffer_context::ArrayBufferBinder [] [src]

pub struct ArrayBufferBinder {
    // some fields omitted
}

The OpenGL state representing the GL_ARRAY_BUFFER target.

Methods

impl ArrayBufferBinder
[src]

unsafe fn current() -> Self

Get the current GL_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) -> ArrayBufferBinding<'a>

Bind a buffer to the GL_ARRAY_BUFFER target, returning a binding.