Struct glin::SimpleVao[][src]

pub struct SimpleVao<T> { /* fields omitted */ }

Is a simplified version of VAO

It only allows relations of the type buffer <- attributes

It also holds a draw mode so it can be directly used as a VaoDraw

Methods

impl<T: 'static> SimpleVao<T>
[src]

GL id

Returns a Range which specifies a range of vertices and a drawing mode

Used to draw a portion of a Vao through a Context

Returns the full range of the SimpleVao vertices

Used to draw the full SimpleVao through a Context

Consumes the SimpleVao into a range

Consumes the SimpleVao into it's full range

Reference to the internal buffer

Mutable reference to the internal buffer

Load data into the internal buffer and indices (re)allocating them

Load vertices into the internal buffer (re)allocating it

Load indices into the internal buffer (re)allocating it

Update the vertices in the internal buffer

Will panic if the capacity of the buffer is not enough to hold the passed data

Update the indices in the internal buffer

Will panic if the capacity of the buffer is not enough to hold the passed data

Enable an attribute by name

Disable an attribute by name

Enable the indices in the VAO

Disable the indices in the VAO

Returns the len of the internal vertex buffer

Returns the len of the internal index buffer

Returns the draw mode

Returns the capacity of the internal vertex buffer

Returns the capacity of the internal index buffer

Change the draw mode

Trait Implementations

impl<T> PartialEq for SimpleVao<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T> Eq for SimpleVao<T>
[src]

impl<'a, T> VaoRange for &'a SimpleVao<T>
[src]

impl<'a, T> VaoRange for &'a mut SimpleVao<T>
[src]

impl<'a, T> VaoDraw for &'a SimpleVao<T>
[src]

impl<'a, T> VaoDraw for &'a mut SimpleVao<T>
[src]

Auto Trait Implementations

impl<T> !Send for SimpleVao<T>

impl<T> !Sync for SimpleVao<T>