pub struct ShapeCode {Show 27 fields
pub index: usize,
pub enabled: bool,
pub sides: i32,
pub additive: bool,
pub thick_outline: bool,
pub textured: bool,
pub num_inst: i32,
pub x: f32,
pub y: f32,
pub rad: f32,
pub ang: f32,
pub tex_ang: f32,
pub tex_zoom: f32,
pub r: f32,
pub g: f32,
pub b: f32,
pub a: f32,
pub r2: f32,
pub g2: f32,
pub b2: f32,
pub a2: f32,
pub border_r: f32,
pub border_g: f32,
pub border_b: f32,
pub border_a: f32,
pub per_frame_equations: Vec<String>,
pub per_frame_init_equations: Vec<String>,
}Expand description
Custom shape definition.
Fields§
§index: usize§enabled: bool§sides: i32§additive: bool§thick_outline: bool§textured: bool§num_inst: i32§x: f32§y: f32§rad: f32§ang: f32§tex_ang: f32§tex_zoom: f32§r: f32§g: f32§b: f32§a: f32§r2: f32§g2: f32§b2: f32§a2: f32§border_r: f32§border_g: f32§border_b: f32§border_a: f32§per_frame_equations: Vec<String>Per-frame equations for this shape
per_frame_init_equations: Vec<String>Initialization equations for this shape
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ShapeCode
impl<'de> Deserialize<'de> for ShapeCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ShapeCode
Auto Trait Implementations§
impl Freeze for ShapeCode
impl RefUnwindSafe for ShapeCode
impl Send for ShapeCode
impl Sync for ShapeCode
impl Unpin for ShapeCode
impl UnwindSafe for ShapeCode
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