pub struct ParticlesState { /* private fields */ }
Implementations§
Source§impl ParticlesState
impl ParticlesState
pub fn init(max_particles: u32) -> ParticlesState
pub fn update(&mut self, delta_time: Duration)
pub fn emit( &mut self, emitting_count: u32, emitting_type: &ParticleType, pos_x: f32, pos_y: f32, )
pub fn render(&mut self, canvas: &mut WindowCanvas)
pub fn render_with_offset( &mut self, offset_x: i32, offset_y: i32, canvas: &mut WindowCanvas, )
Auto Trait Implementations§
impl Freeze for ParticlesState
impl RefUnwindSafe for ParticlesState
impl Send for ParticlesState
impl Sync for ParticlesState
impl Unpin for ParticlesState
impl UnwindSafe for ParticlesState
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