Struct luminance::tess::TessSlice[][src]

pub struct TessSlice<'a, V> where
    V: 'a, 
{ /* fields omitted */ }

Tessellation slice.

This type enables slicing a tessellation on the fly so that we can render patches of it.

Methods

impl<'a, V> TessSlice<'a, V>
[src]

Create a tessellation render that will render the whole input tessellation with only one instance.

Create a tessellation render for a part of the tessellation starting at the beginning of its buffer with only one instance.

The part is selected by giving the number of vertices to render.

Note: if you also need to use an arbitrary part of your tessellation (not starting at the first vertex in its buffer), have a look at TessSlice::one_slice.

Panic

Panic if the number of vertices is higher to the capacity of the tessellation’s vertex buffer.

Create a tessellation render for a slice of the tessellation starting anywhere in its buffer with only one instance.

The part is selected by giving the start vertex and the number of vertices to render. This

Panic

Panic if the start vertex is higher to the capacity of the tessellation’s vertex buffer.

Panic if the number of vertices is higher to the capacity of the tessellation’s vertex buffer.

Render a tessellation.

Trait Implementations

impl<'a, V: Clone> Clone for TessSlice<'a, V> where
    V: 'a, 
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Performs the conversion.

Auto Trait Implementations

impl<'a, V> !Send for TessSlice<'a, V>

impl<'a, V> !Sync for TessSlice<'a, V>