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]
pub fn bind_attrib_pointers(&mut self, binder: AttribBinder)
[src]
Set the AttribBinder
that will contain all of the vertex attributes
used when rendering.
pub fn buffer(&self) -> &Buffer
[src]
Get a reference to underlying OpenGL buffer.
pub fn buffer_mut(&mut self) -> &mut Buffer
[src]
Get a mutable reference to the underlying OpenGL buffer.