Struct let_engine::Object
source · pub struct Object {
pub position: [f32; 2],
pub size: [f32; 2],
pub rotation: f32,
pub color: [f32; 4],
pub texture: Option<String>,
pub data: Data,
}
Expand description
Main game object that holds position, size, rotation, color, texture and data. To make your objects appear take an empty object, add your traits and send an receiver of it to the main game object.
Fields§
§position: [f32; 2]
§size: [f32; 2]
§rotation: f32
§color: [f32; 4]
§texture: Option<String>
§data: Data
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Object
impl Send for Object
impl Sync for Object
impl Unpin for Object
impl UnwindSafe for Object
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