Struct spitfire_draw::particles::ParticleEmitter
source · pub struct ParticleEmitter {
pub shader: Option<ShaderRef>,
pub textures: SmallVec<[SpriteTexture; 4]>,
pub uniforms: HashMap<Cow<'static, str>, GlowUniformValue>,
pub blending: Option<GlowBlending>,
pub screen_space: bool,
}Fields§
§shader: Option<ShaderRef>§textures: SmallVec<[SpriteTexture; 4]>§uniforms: HashMap<Cow<'static, str>, GlowUniformValue>§blending: Option<GlowBlending>§screen_space: boolImplementations§
source§impl ParticleEmitter
impl ParticleEmitter
pub fn single(texture: SpriteTexture) -> Self
pub fn shader(self, value: ShaderRef) -> Self
pub fn texture(self, value: SpriteTexture) -> Self
pub fn uniform(self, key: Cow<'static, str>, value: GlowUniformValue) -> Self
pub fn blending(self, value: GlowBlending) -> Self
pub fn screen_space(self, value: bool) -> Self
pub fn emit<I: IntoIterator<Item = ParticleInstance>>( &self, instances: I ) -> ParticleDraw<'_, I>
Trait Implementations§
source§impl Clone for ParticleEmitter
impl Clone for ParticleEmitter
source§fn clone(&self) -> ParticleEmitter
fn clone(&self) -> ParticleEmitter
Returns a copy 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 ParticleEmitter
impl Debug for ParticleEmitter
source§impl Default for ParticleEmitter
impl Default for ParticleEmitter
source§fn default() -> ParticleEmitter
fn default() -> ParticleEmitter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ParticleEmitter
impl !Send for ParticleEmitter
impl !Sync for ParticleEmitter
impl Unpin for ParticleEmitter
impl !UnwindSafe for ParticleEmitter
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