Struct pixel_engine::EngineWrapper
source · pub struct EngineWrapper(_);
Expand description
A Wrapper around an Engine
Implementations§
Methods from Deref<Target = Engine>§
sourcepub fn get_mouse_btn(&self, btn: MouseBtn) -> Input
pub fn get_mouse_btn(&self, btn: MouseBtn) -> Input
Get the status of a Mouse Button
sourcepub fn get_mouse_location(&self) -> (u32, u32)
pub fn get_mouse_location(&self) -> (u32, u32)
Get the mouse location (in pixel) on the screen Will be defaulted to (0,0) at the start of the program
sourcepub fn get_mouse_wheel(&self) -> MouseWheel
pub fn get_mouse_wheel(&self) -> MouseWheel
Get the scroll wheel direction (If Any) during the frame
sourcepub fn get_pressed(&self) -> HashSet<Keycodes>
pub fn get_pressed(&self) -> HashSet<Keycodes>
Get all Keys pressed during the last frame
sourcepub fn create_decal(&mut self, sprite: &Sprite) -> Decal
pub fn create_decal(&mut self, sprite: &Sprite) -> Decal
Create a GPU version of Sprite
sourcepub fn destroy_decal(&mut self, decal: Decal)
pub fn destroy_decal(&mut self, decal: Decal)
Tell the GPU to destroy everything related to that Decal