Struct vox_geometry_rust::particle_emitter_set2::ParticleEmitterSet2[][src]

pub struct ParticleEmitterSet2 { /* fields omitted */ }
Expand description

Implementations

impl ParticleEmitterSet2[src]

pub fn new_default() -> ParticleEmitterSet2[src]

Constructs an emitter.

pub fn new(emitters: Vec<ParticleEmitter2Ptr>) -> ParticleEmitterSet2[src]

Constructs an emitter with sub-emitters.

pub fn add_emitter(&mut self, emitter: ParticleEmitter2Ptr)[src]

Adds sub-emitter.

pub fn set_on_begin_update_callback(&mut self, callback: OnBeginUpdateCallback)[src]

\brief Sets the callback function to be called when ParticleEmitter2::update function is invoked.

The callback function takes current simulation time in seconds unit. Use this callback to track any motion or state changes related to this emitter.

  • parameter: callback The callback function.

Trait Implementations

impl ParticleEmitter2 for ParticleEmitterSet2[src]

fn update(
    &mut self,
    current_time_in_seconds: f64,
    time_interval_in_seconds: f64
)
[src]

Updates the emitter state from \p current_time_in_seconds to the following time-step. Read more

fn on_set_target(&self, particles: ParticleSystemData2Ptr)[src]

Called when ParticleEmitter3::set_target is executed.

fn on_update(
    &mut self,
    current_time_in_seconds: f64,
    time_interval_in_seconds: f64
)
[src]

Called when ParticleEmitter3::update is executed.

fn view(&self) -> &ParticleEmitter2Data[src]

fn view_mut(&mut self) -> &mut ParticleEmitter2Data[src]

fn target(&self) -> &Option<ParticleSystemData2Ptr>[src]

Returns the target particle system to emit.

fn set_target(&mut self, particles: ParticleSystemData2Ptr)[src]

Sets the target particle system to emit.

fn is_enabled(&self) -> bool[src]

Returns true if the emitter is enabled.

fn set_is_enabled(&mut self, enabled: bool)[src]

Sets true/false to enable/disable the emitter.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V