pub struct ParticleViewport {
pub emitter: GpuEmitter,
pub forces: Vec<GpuForce>,
pub max_particles: u32,
pub camera_pos: [f32; 3],
pub camera_target: [f32; 3],
pub camera_up: [f32; 3],
pub fov: f32,
pub time: f32,
pub delta_time: f32,
pub bounds: [f32; 4],
pub blend_mode: u32,
pub playing: bool,
}Expand description
Particle viewport data for rendering
Fields§
§emitter: GpuEmitterEmitter configuration
forces: Vec<GpuForce>Force affectors (up to 8)
max_particles: u32Maximum particles
camera_pos: [f32; 3]Camera position
camera_target: [f32; 3]Camera target
camera_up: [f32; 3]Camera up vector
fov: f32Field of view
time: f32Current time
delta_time: f32Delta time
bounds: [f32; 4]Viewport bounds (x, y, width, height)
blend_mode: u32Blend mode (0=alpha, 1=additive)
playing: boolWhether system is playing
Trait Implementations§
Source§impl Clone for ParticleViewport
impl Clone for ParticleViewport
Source§fn clone(&self) -> ParticleViewport
fn clone(&self) -> ParticleViewport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParticleViewport
impl Debug for ParticleViewport
Auto Trait Implementations§
impl Freeze for ParticleViewport
impl RefUnwindSafe for ParticleViewport
impl Send for ParticleViewport
impl Sync for ParticleViewport
impl Unpin for ParticleViewport
impl UnsafeUnpin for ParticleViewport
impl UnwindSafe for ParticleViewport
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