Struct macroquad_tiled::Layer
source · pub struct Layer {
pub objects: Vec<Object>,
pub width: u32,
pub height: u32,
pub data: Vec<Option<Tile>>,
pub opacity: f32,
pub image: Option<Texture2D>,
pub offsetx: Option<f32>,
pub offsety: Option<f32>,
}Fields§
§objects: Vec<Object>§width: u32§height: u32§data: Vec<Option<Tile>>§opacity: f32imagelayer
image: Option<Texture2D>§offsetx: Option<f32>§offsety: Option<f32>Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnwindSafe for Layer
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