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: bool
Implementations§
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 Freeze for ParticleEmitter
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