Trait glitter::vertex_buffer::IndexBufferContext [] [src]

pub trait IndexBufferContext: ElementArrayBufferContext + Sized {
    fn bind_index_buffer<'a, I>(
        self,
        ibo: &'a mut IndexBuffer<I>
    ) -> (IndexBufferBinding<I>, Self::Rest)
    where
        I: IndexDatum
, { ... } }

An OpenGL context that can have an index buffer bound.

Note

Internally, index buffers are bound to the GL_ELEMENT_ARRAY_BUFFER binding, so any context that has a free GL_ELEMENT_ARRAY_BUFFER is an IndexBufferContext.

Provided Methods

Bind an index buffer to this context, returning a binding and the remaining context.

Implementors