Struct amethyst_renderer::PosTex [−][src]
Vertex format with position and UV texture coordinate attributes.
Fields
position: [f32; 3]
Position of the vertex in 3D space.
tex_coord: [f32; 2]
UV texture coordinates used by the vertex.
Trait Implementations
impl Clone for PosTex
[src]
impl Clone for PosTex
fn clone(&self) -> PosTex
[src]
fn clone(&self) -> PosTex
Returns 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 PosTex
[src]
impl Copy for PosTex
impl Debug for PosTex
[src]
impl Debug for PosTex
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for PosTex
[src]
impl PartialEq for PosTex
fn eq(&self, other: &PosTex) -> bool
[src]
fn eq(&self, other: &PosTex) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PosTex) -> bool
[src]
fn ne(&self, other: &PosTex) -> bool
This method tests for !=
.
impl Pod for PosTex
[src]
impl Pod for PosTex
impl VertexFormat for PosTex
[src]
impl VertexFormat for PosTex
const ATTRIBUTES: Attributes<'static>
ATTRIBUTES: Attributes<'static> = &[(<Position>::NAME, <Self as With::<Position>>::FORMAT), (<TexCoord>::NAME, <Self as With::<TexCoord>>::FORMAT)]
List of all attributes formats with name and offset.
fn size() -> usize
[src]
fn size() -> usize
Returns 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 PosTex
[src]
impl With<Position> for PosTex
const FORMAT: AttributeFormat
FORMAT: AttributeFormat = Element{offset: 0, format: <Position>::FORMAT,}
Individual format of the attribute for this vertex format
impl With<TexCoord> for PosTex
[src]
impl With<TexCoord> for PosTex
const FORMAT: AttributeFormat
FORMAT: AttributeFormat = Element{offset: <Position>::SIZE, format: <TexCoord>::FORMAT,}
Individual format of the attribute for this vertex format