pub struct TileLayerDraw {
pub tiles: Handle<TileLayer>,
pub layer: u8,
pub depth: u32,
}Expand description
A tile layer to draw in a frame.
Fields§
§tiles: Handle<TileLayer>The layer, in the TileLayers the renderer is given. One that is
not there, or whose tile set’s texture is not ready, is not drawn.
layer: u8Higher layers are drawn in front of lower ones, sprites and tiles alike.
depth: u32Where the tiles are among the sprites of their layer, as a sprite’s
SortMode::Fixed: at 0 behind every
y-sorted sprite, at u32::MAX in front of every one. They are drawn
before the sprites of the same layer and depth, so tiles over every
sprite of a layer go in a higher layer.
Implementations§
Trait Implementations§
Source§impl Clone for TileLayerDraw
impl Clone for TileLayerDraw
impl Copy for TileLayerDraw
Source§impl Debug for TileLayerDraw
impl Debug for TileLayerDraw
impl Eq for TileLayerDraw
Source§impl PartialEq for TileLayerDraw
impl PartialEq for TileLayerDraw
impl StructuralPartialEq for TileLayerDraw
Auto Trait Implementations§
impl Forget for TileLayerDraw
impl Freeze for TileLayerDraw
impl Move for TileLayerDraw
impl RefUnwindSafe for TileLayerDraw
impl Send for TileLayerDraw
impl Sync for TileLayerDraw
impl Unpin for TileLayerDraw
impl UnsafeUnpin for TileLayerDraw
impl UnwindSafe for TileLayerDraw
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more