Trait glitter::context::buffer_context::ElementArrayBufferContext [] [src]

pub trait ElementArrayBufferContext: AContext {
    type Binder: BorrowMut<ElementArrayBufferBinder>;
    type Rest: AContext;
    fn split_element_array_buffer(self) -> (Self::Binder, Self::Rest);

    fn bind_element_array_buffer<'a>(self, buffer: &'a mut Buffer) -> (ElementArrayBufferBinding<'a>, Self::Rest) where Self: Sized { ... }
}

An OpenGL context that has a free GL_ELEMENT_ARRAY_BUFFER binding.

Associated Types

type Binder: BorrowMut<ElementArrayBufferBinder>

The type of binder this context contains.

type Rest: AContext

The OpenGL context that will be returned after binding the element array buffer.

Required Methods

fn split_element_array_buffer(self) -> (Self::Binder, Self::Rest)

Split this context into a binder and the remaining context.

Provided Methods

fn bind_element_array_buffer<'a>(self, buffer: &'a mut Buffer) -> (ElementArrayBufferBinding<'a>, Self::Rest) where Self: Sized

Bind a buffer to this context's element array buffer, returning a new context and a binding.

See also

glBindBuffer OpenGL docs

Implementors