Struct draw2d::graphics::layer::Layer [−][src]
pub struct Layer { /* fields omitted */ }
Expand description
Layers are ordered, back to front, and render a persistent collection of vertex batches.
Implementations
Set the layer’s projection matrix.
Get a reference to the layer’s projection.
Add a batch to the layer.
Batches will persist until clear
is called on this layer.
Push all of the batches into the layer.
Batches will persist until clear
is called on this layer.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Layer
impl UnwindSafe for Layer
Blanket Implementations
Mutably borrows from an owned value. Read more
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
Checks if self
is actually part of its subset T
(and can be converted to it).
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
The inclusion map: converts self
to the equivalent element of its superset.