Trait luminance::tessellation::HasTessellation [] [src]

pub trait HasTessellation {
    type Tessellation;
    fn new<T>(mode: Mode, vertices: &[T], indices: Option<&[u32]>) -> Self::Tessellation where T: Vertex;
    fn destroy(tessellation: &mut Self::Tessellation);
}

Trait to implement to provide tessellation features.

Associated Types

A type representing tessellation on GPU.

Required Methods

Create a Tessellation from its vertices and a Mode.

If indices == None, the vertices represent an array of vertices that are connected to each others in the order they appear. If you want to connect them in another way, you can index them with Some(indices).

Destroy a Tessellation.

Implementors