Struct draw2d::graphics::layer::Batch [−][src]
pub struct Batch {
pub texture_handle: TextureHandle,
pub vertices: Vec<Vertex2d>,
}Expand description
Batches are persintent units of data which can be rendered.
These are comparable to ‘meshes’ in other rendering frameworks.
Fields
texture_handle: TextureHandlevertices: Vec<Vertex2d>Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Batch
impl UnwindSafe for Batch
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.