Struct luminance::tess::TessRender
[−]
[src]
pub struct TessRender<'a, V> where
V: 'a, { /* fields omitted */ }
Tessellation render.
Methods
impl<'a, V> TessRender<'a, V>
[src]
pub fn one_whole(tess: &'a Tess<V>) -> Self
[src]
Create a tessellation render that will render the whole input tessellation with only one instance.
pub fn one_sub(tess: &'a Tess<V>, vert_nb: usize) -> Self
[src]
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
TessRender::one_slice
.
Panic
Panic if the number of vertices is higher to the capacity of the tessellation’s vertex buffer.
pub fn one_slice(tess: &'a Tess<V>, start: usize, nb: usize) -> Self
[src]
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.
pub fn render(&self) where
V: Vertex,
[src]
V: Vertex,
Render a tessellation.
Trait Implementations
impl<'a, V: Clone> Clone for TessRender<'a, V> where
V: 'a,
[src]
V: 'a,
fn clone(&self) -> TessRender<'a, V>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a, V> From<&'a Tess<V>> for TessRender<'a, V>
[src]
Auto Trait Implementations
impl<'a, V> Send for TessRender<'a, V> where
V: Sync,
V: Sync,
impl<'a, V> Sync for TessRender<'a, V> where
V: Sync,
V: Sync,