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]
fn new() -> PolygonBufferIndices
[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.
fn extend(&mut self, other: &PolygonBufferIndices)
[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.
fn as_renderable<F: Factory<R>, R: Resources>(
&self,
factory: &mut F
) -> RenderablePolygonIndices<R>
[src]
&self,
factory: &mut F
) -> RenderablePolygonIndices<R>
Prepare these indices for rendering.
Trait Implementations
impl Clone for PolygonBufferIndices
[src]
fn clone(&self) -> PolygonBufferIndices
[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