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

pub struct Tess<V> { /* fields omitted */ }

GPU typed tessellation.

The tessellation is typed with the vertex type.

Methods

impl<V> Tess<V> where
    V: Vertex
[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.

Get an immutable slice over the vertices stored on GPU.

Get a mutable slice over the vertices stored on GPU.

impl Tess<()>
[src]

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 generate. 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<V> Drop for Tess<V>
[src]

Executes the destructor for this type. Read more

impl<'a, V> From<&'a Tess<V>> for TessRender<'a, V>
[src]

Performs the conversion.

Auto Trait Implementations

impl<V> !Send for Tess<V>

impl<V> !Sync for Tess<V>