Trait lyon_tessellation::GeometryReceiver [−][src]
pub trait GeometryReceiver<Vertex> { fn set_geometry(&mut self, vertices: &[Vertex], indices: &[u32]); }
An interface with similar goals to GeometryBuilder
for algorithms that pre-build
the vertex and index buffers.
This is primarily intended for efficient interaction with the libtess2 tessellator
from the lyon_tess2
crate.
Required Methods
fn set_geometry(&mut self, vertices: &[Vertex], indices: &[u32])
Implementors
impl<'l, VertexType, IndexType, InputVertex, Ctor> GeometryReceiver<InputVertex> for BuffersBuilder<'l, VertexType, IndexType, InputVertex, Ctor> where
VertexType: 'l + Clone,
IndexType: From<VertexId>,
Ctor: VertexConstructor<InputVertex, VertexType>,
InputVertex: Clone,impl<V> GeometryReceiver<V> for NoOutput