Struct amethyst_renderer::PosColor [−][src]
Vertex format with position and RGBA8 color attributes.
Fields
position: [f32; 3]
Position of the vertex in 3D space.
color: [f32; 4]
RGBA color value of the vertex.
Trait Implementations
impl Clone for PosColor[src]
impl Clone for PosColorfn clone(&self) -> PosColor[src]
fn clone(&self) -> PosColorReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for PosColor[src]
impl Copy for PosColorimpl Debug for PosColor[src]
impl Debug for PosColorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for PosColor[src]
impl PartialEq for PosColorfn eq(&self, other: &PosColor) -> bool[src]
fn eq(&self, other: &PosColor) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &PosColor) -> bool[src]
fn ne(&self, other: &PosColor) -> boolThis method tests for !=.
impl Pod for PosColor[src]
impl Pod for PosColorimpl VertexFormat for PosColor[src]
impl VertexFormat for PosColorconst ATTRIBUTES: Attributes<'static>
ATTRIBUTES: Attributes<'static> = &[(<Position>::NAME, <Self as With::<Position>>::FORMAT), (<Color>::NAME, <Self as With::<Color>>::FORMAT)]
List of all attributes formats with name and offset.
fn size() -> usize[src]
fn size() -> usizeReturns the size of a single vertex in bytes.
fn attribute<F>() -> AttributeFormat where
F: Attribute,
Self: With<F>, [src]
fn attribute<F>() -> AttributeFormat where
F: Attribute,
Self: With<F>, Returns attribute of vertex by type
impl With<Position> for PosColor[src]
impl With<Position> for PosColorconst FORMAT: AttributeFormat
FORMAT: AttributeFormat = Element{offset: 0, format: <Position>::FORMAT,}
Individual format of the attribute for this vertex format
impl With<Color> for PosColor[src]
impl With<Color> for PosColorconst FORMAT: AttributeFormat
FORMAT: AttributeFormat = Element{offset: <Position>::SIZE, format: <Color>::FORMAT,}
Individual format of the attribute for this vertex format