pub struct Glyph {Show 20 fields
pub character: char,
pub position: Vec3,
pub velocity: Vec3,
pub acceleration: Vec3,
pub rotation: f32,
pub scale: Vec2,
pub color: Vec4,
pub emission: f32,
pub glow_color: Vec3,
pub glow_radius: f32,
pub mass: f32,
pub charge: f32,
pub temperature: f32,
pub entropy: f32,
pub life_function: Option<MathFunction>,
pub age: f32,
pub lifetime: f32,
pub layer: RenderLayer,
pub blend_mode: BlendMode,
pub visible: bool,
}Expand description
A single character rendered as a textured quad in 3D space.
Fields§
§character: char§position: Vec3§velocity: Vec3§acceleration: Vec3§rotation: f32§scale: Vec2§color: Vec4§emission: f32§glow_color: Vec3§glow_radius: f32§mass: f32§charge: f32§temperature: f32§entropy: f32§life_function: Option<MathFunction>§age: f32§lifetime: f32§layer: RenderLayer§blend_mode: BlendMode§visible: boolImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Glyph
impl RefUnwindSafe for Glyph
impl Send for Glyph
impl Sync for Glyph
impl Unpin for Glyph
impl UnsafeUnpin for Glyph
impl UnwindSafe for Glyph
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.