#[repr(C)]pub struct PosColor {
pub position: Position,
pub color: Color,
}
Expand description
Vertex format with position and RGBA8 color attributes.
Fields§
§position: Position
Position of the vertex in 3D space.
color: Color
RGBA color value of the vertex.
Trait Implementations§
Source§impl AsVertex for PosColor
impl AsVertex for PosColor
Source§fn vertex() -> VertexFormat
fn vertex() -> VertexFormat
List of all attributes formats with name and offset.
Source§impl PartialOrd for PosColor
impl PartialOrd for PosColor
impl Copy for PosColor
impl StructuralPartialEq for PosColor
Auto Trait Implementations§
impl Freeze for PosColor
impl RefUnwindSafe for PosColor
impl Send for PosColor
impl Sync for PosColor
impl Unpin for PosColor
impl UnwindSafe for PosColor
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)