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

pub struct VertexBuffer<T: VertexData> { /* 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]

[src]

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

[src]

Get a reference to underlying OpenGL buffer.

[src]

Get a mutable reference to the underlying OpenGL buffer.