#[repr(C)]pub struct VdpColor {
pub red: f32,
pub green: f32,
pub blue: f32,
pub alpha: f32,
}Expand description
A constant RGBA color.
Note that the components are stored as float values in the range 0.0…1.0 rather than format-specific integer values. This allows VdpColor values to be independent from the exact surface format(s) in use.
Fields§
§red: f32§green: f32§blue: f32§alpha: f32Trait Implementations§
Auto Trait Implementations§
impl Freeze for VdpColor
impl RefUnwindSafe for VdpColor
impl Send for VdpColor
impl Sync for VdpColor
impl Unpin for VdpColor
impl UnwindSafe for VdpColor
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