Struct amethyst_renderer::vertex::PosColor
[−]
#[repr(C)]pub struct PosColor { pub a_position: [f32; 3], pub a_color: [f32; 4], }
Vertex format with position and RGBA8 color attributes.
Fields
a_position: [f32; 3]
Position of the vertex in 3D space.
a_color: [f32; 4]
RGBA color value of the vertex.
Trait Implementations
impl Clone for PosColor
fn clone(&self) -> PosColor
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for PosColor
impl Debug for PosColor
impl PartialEq for PosColor
fn eq(&self, __arg_0: &PosColor) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PosColor) -> bool
This method tests for !=
.
impl Pod for PosColor
impl Structure<Format> for PosColor
impl VertexFormat for PosColor
type Attributes = [Attribute; 2]
Container for attributes of this format
type NamedAttributes = [(&'static str, Attribute); 2]
Container for name+attribute pairs of this format
fn attributes() -> Self::Attributes
Returns a list of all attributes specified in the vertex.
fn named_attributes<N: AttributeNames>() -> Self::NamedAttributes
Returns a list of all name+attribute pairs specified in the vertex. The caller provides attribute type -> Name mapping Read more
fn size() -> usize
Returns the size of a single vertex in bytes.
fn attribute<F>() -> Attribute where
Self: WithField<F>,
Self: WithField<F>,
Returns attribute of vertex by type
impl WithField<Position> for PosColor
fn field_attribute() -> Attribute
Query individual attribute of the field for this format
impl WithField<Color> for PosColor
fn field_attribute() -> Attribute
Query individual attribute of the field for this format