pub enum ScenePaint {
Solid(Color),
LinearGradient {
start: DVec2,
end: DVec2,
stops: GradientStops,
},
RadialGradient {
center: DVec2,
end: DVec2,
stops: GradientStops,
},
Image {
asset: AssetId,
width: u32,
height: u32,
affine: [f64; 6],
tint: Color,
},
}Expand description
Resolved, per-frame paint attached to a scene item. The renderer bakes this into mesh vertex colors at tessellation time.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ScenePaint
impl Clone for ScenePaint
Source§fn clone(&self) -> ScenePaint
fn clone(&self) -> ScenePaint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScenePaint
impl Debug for ScenePaint
Source§impl<'de> Deserialize<'de> for ScenePaint
impl<'de> Deserialize<'de> for ScenePaint
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
Source§impl PartialEq for ScenePaint
impl PartialEq for ScenePaint
Source§impl Serialize for ScenePaint
impl Serialize for ScenePaint
impl StructuralPartialEq for ScenePaint
Auto Trait Implementations§
impl Freeze for ScenePaint
impl RefUnwindSafe for ScenePaint
impl Send for ScenePaint
impl Sync for ScenePaint
impl Unpin for ScenePaint
impl UnsafeUnpin for ScenePaint
impl UnwindSafe for ScenePaint
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