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]
impl<V> Tess<V> where
V: Vertex,
pub fn new<'a, C, W, I>(
ctx: &mut C,
mode: Mode,
vertices: W,
indices: I
) -> Self where
C: GraphicsContext,
TessVertices<'a, V>: From<W>,
V: 'a + Vertex,
I: Into<Option<&'a [u32]>>,
[src]
pub fn new<'a, C, W, I>(
ctx: &mut C,
mode: Mode,
vertices: W,
indices: I
) -> Self where
C: GraphicsContext,
TessVertices<'a, V>: From<W>,
V: 'a + Vertex,
I: Into<Option<&'a [u32]>>,
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.
pub fn as_slice(&self) -> Result<BufferSlice<V>, TessMapError>
[src]
pub fn as_slice(&self) -> Result<BufferSlice<V>, TessMapError>
Get an immutable slice over the vertices stored on GPU.
pub fn as_slice_mut<C>(&mut self) -> Result<BufferSliceMut<V>, TessMapError>
[src]
pub fn as_slice_mut<C>(&mut self) -> Result<BufferSliceMut<V>, TessMapError>
Get a mutable slice over the vertices stored on GPU.
impl Tess<()>
[src]
impl Tess<()>
pub fn attributeless<C>(ctx: &mut C, mode: Mode, vert_nb: usize) -> Self where
C: GraphicsContext,
[src]
pub fn attributeless<C>(ctx: &mut C, mode: Mode, vert_nb: usize) -> Self where
C: GraphicsContext,
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]
impl<V> Drop for Tess<V>
impl<'a, V> From<&'a Tess<V>> for TessSlice<'a, V>
[src]
impl<'a, V> From<&'a Tess<V>> for TessSlice<'a, V>
impl<V> TessSliceIndex<RangeFull, V> for Tess<V>
[src]
impl<V> TessSliceIndex<RangeFull, V> for Tess<V>
impl<V> TessSliceIndex<RangeTo<usize>, V> for Tess<V>
[src]
impl<V> TessSliceIndex<RangeTo<usize>, V> for Tess<V>
impl<V> TessSliceIndex<RangeFrom<usize>, V> for Tess<V>
[src]
impl<V> TessSliceIndex<RangeFrom<usize>, V> for Tess<V>
impl<V> TessSliceIndex<Range<usize>, V> for Tess<V>
[src]
impl<V> TessSliceIndex<Range<usize>, V> for Tess<V>