pub struct ShapeInstance {}Expand description
One evaluated custom-shape instance (CShape after per-frame code for that instance).
Fields§
§sides: i32var_pf_sides (clamped to 3..=CompatRules::max_shape_sides by the renderer).
x: f64var_pf_x, projectM / MD2 compute the fan centre x * 2.0 - 1.0 in double and round to f32 once, so
x / y stay in the equation VM’s f64 (0..1, y=1 top).
y: f64var_pf_y, see x.
rad: f32var_pf_rad.
ang: f32var_pf_ang.
rgba: [f32; 4]Inner colour var_pf_r/g/b/a.
rgba2: [f32; 4]Outer colour var_pf_r2/g2/b2/a2.
border_rgba: [f32; 4]Border colour var_pf_border_*.
additive: boolvar_pf_additive.
thick: boolvar_pf_thick (thick outline).
textured: boolvar_pf_textured.
tex_zoom: f32var_pf_tex_zoom.
tex_ang: f32var_pf_tex_ang.
image: Option<ShapeImage>projectM’s shapecode_N_image: a textured shape samples this user texture (see
Renderer::set_user_texture) instead of the main image.
None (the default, and every MilkDrop 2 shape) keeps the main-image behaviour.
Trait Implementations§
Source§impl Clone for ShapeInstance
impl Clone for ShapeInstance
Source§impl Debug for ShapeInstance
impl Debug for ShapeInstance
Auto Trait Implementations§
impl Forget for ShapeInstance
impl Freeze for ShapeInstance
impl Move for ShapeInstance
impl RefUnwindSafe for ShapeInstance
impl Send for ShapeInstancewhere
RawVecInner: Send,
impl Sync for ShapeInstancewhere
RawVecInner: Sync,
impl Unpin for ShapeInstance
impl UnsafeUnpin for ShapeInstance
impl UnwindSafe for ShapeInstancewhere
RawVecInner: UnwindSafe,
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