Struct glitter::vertex_buffer::IndexBuffer [] [src]

pub struct IndexBuffer<T: IndexDatum> {
    // some fields omitted
}

A buffer taht contains index data. In addition to storing a buffer, an IndexBuffer store a count of the amount of IndexData that has been buffered.

Methods

impl<T: IndexDatum> IndexBuffer<T>
[src]

fn buffer(&self) -> &Buffer

Get a reference to the underlying OpenGL buffer.

fn buffer_mut(&mut self) -> &mut Buffer

Get a mutable reference to the underlying OpenGL buffer.