Struct luminance::tess::Tess [] [src]

pub struct Tess<C> where C: HasTess {
    pub repr: C::Tess,
}

GPU tessellation.

Fields

Methods

impl<C> Tess<C> where C: HasTess
[src]

Create a new tessellation.

The mode argument gives the type of the primitives and how to interpret the vertices and indices slices. If indices is set to None, the tessellation will use the vertices as-is.

Create a tessellation that will procedurally generate its vertices (i.e. attribute-less).

You just have to give the Mode to use and the number of vertices the tessellation must have. You’ll be handed back a tessellation object that doesn’t actually hold anything. You will have to generate the vertices on the fly in your shaders.

Trait Implementations

impl<C: Debug> Debug for Tess<C> where C: HasTess, C::Tess: Debug
[src]

Formats the value using the given formatter.

impl<C> Drop for Tess<C> where C: HasTess
[src]

A method called when the value goes out of scope. Read more