[][src]Struct glin::SimpleVao

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 a Range which specifies a range of vertices and a drawing mode

Used to draw a portion of a VAO through a Context

base_vertex adds an offset to the indices See glDrawElementsBaseVertex

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

Used to draw a portion of a VAO through a Context

base_instance adds an offset to the instanced attributes index See glDrawArraysInstancedBaseInstance

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

Used to draw a portion of a VAO through a Context

  • base_vertex adds an offset to the indices
  • base_instance adds an offset to the instanced attributes index

See glDrawElementsBaseVertexBaseInstance

Returns the full range of the SimpleVao vertices

Used to draw the full SimpleVao through a Context

Returns the full range of the SimpleVao vertices

Used to draw the full SimpleVao through a Context base_vertex adds an offset to the indices See glDrawElementsBaseVertex

Returns the full range of the SimpleVao vertices

Used to draw the full SimpleVao through a Context base_vertex adds an offset to the indices See glDrawArraysInstancedBaseInstance

Returns the full range of the SimpleVao vertices

Used to draw the full SimpleVao through a Context

  • base_vertex adds an offset to the indices
  • base_instance adds an offset to the instanced attributes index

See glDrawElementsBaseVertexBaseInstance

Consumes the SimpleVao into a range

Consumes the SimpleVao into a range

base_vertex adds an offset to the indices See glDrawElementsBaseVertex

Consumes the SimpleVao into a range

base_instance adds an offset to the instanced attributes index See glDrawArraysInstancedBaseInstance

Consumes the SimpleVao into a range

  • base_vertex adds an offset to the indices
  • base_instance adds an offset to the instanced attributes index

See glDrawElementsBaseVertexBaseInstance

Consumes the SimpleVao into it's full range

Consumes the SimpleVao into it's full range

base_vertex adds an offset to the indices See glDrawElementsBaseVertex

Consumes the SimpleVao into it's full range

base_instance adds an offset to the instanced attributes index See glDrawArraysBaseInstance

Consumes the SimpleVao into it's full range

  • base_vertex adds an offset to the indices
  • base_instance adds an offset to the instanced attributes index

See glDrawElementsBaseVertexBaseInstance

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<'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]

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

This method tests for !=.

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

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

Auto Trait Implementations

impl<T> !Send for SimpleVao<T>

impl<T> !Sync for SimpleVao<T>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> SetParameter for T
[src]

Sets value as a parameter of self.