Struct gfx_draping::PolygonBufferIndices [] [src]

pub struct PolygonBufferIndices { /* fields omitted */ }

A set of indices into a PolygonBuffer.

You can combine these indices using extend to render multiple polygons at once.

Methods

impl PolygonBufferIndices
[src]

[src]

Create an empty set of indices.

Rendering the returned indices would be a no-op unless you call extend on it. This is a convenience method that you can use as the "zero" value to a reduce-like operation.

[src]

Add all the polygons in other into this set of indices.

After calling extend, rendering this will draw all the polygons previously in this as well as all the polygons in other. In other words, you can think of this as a "union"/"add all" operation.

[src]

Prepare these indices for rendering.

Trait Implementations

impl Clone for PolygonBufferIndices
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for PolygonBufferIndices
[src]

[src]

Formats the value using the given formatter.