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

The type of binder this context contains.

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

Required Methods

Split this context into a binder and the remaining context.

Provided Methods

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

See also

glBindBuffer OpenGL docs

Implementors