Struct glitter::vertex_buffer::VertexBuffer [] [src]

pub struct VertexBuffer<T: VertexData> {
    // some fields omitted
}

A buffer that contains vertex data. In addition to storing a buffer, a VertexBuffer stores an AttribBinder and a count of the amount of VertexData that has been buffered.

Methods

impl<V: VertexData> VertexBuffer<V>
[src]

fn bind_attrib_pointers(&mut self, binder: AttribBinder)

Set the AttribBinder that will contain all of the vertex attributes used when rendering.

fn buffer(&self) -> &Buffer

Get a reference to underlying OpenGL buffer.

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

Get a mutable reference to the underlying OpenGL buffer.