Struct gfx_draping::PolygonBuffer
[−]
[src]
pub struct PolygonBuffer { /* fields omitted */ }
A collection of polygons that could all be rendered in a single draw call.
Methods
impl PolygonBuffer
[src]
fn new() -> PolygonBuffer
[src]
Create a new, empty buffer.
fn add(&mut self, polygon: &Polygon) -> PolygonBufferIndices
[src]
Add a polygon to this buffer.
The PolygonBufferIndices
returned can be used to render the passed polygon in a future
call to DrapingRenderer::render
using this buffer.
fn as_renderable<F: Factory<R>, R: Resources>(
&self,
factory: &mut F
) -> RenderablePolygonBuffer<R>
[src]
&self,
factory: &mut F
) -> RenderablePolygonBuffer<R>
Prepare this buffer for rendering.
Trait Implementations
impl Clone for PolygonBuffer
[src]
fn clone(&self) -> PolygonBuffer
[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