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]

[src]

Create a new, empty buffer.

[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.

[src]

Prepare this buffer for rendering.

Trait Implementations

impl Clone for PolygonBuffer
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for PolygonBuffer
[src]

[src]

Formats the value using the given formatter.