Struct tetra::graphics::mesh::Vertex [−][src]
Expand description
An individual piece of vertex data.
Fields
position: Vec2<f32>
The position of the vertex, in screen co-ordinates.
The transform matrix will be applied to this value, followed by a projection from screen co-ordinates to device co-ordinates.
uv: Vec2<f32>
The texture co-ordinates that should be sampled for this vertex.
Both the X and the Y should be between 0.0 and 1.0.
color: Color
The color of the vertex.
This will be multiplied by the color
of the DrawParams
when drawing a
mesh.
Implementations
Trait Implementations
impl Copy for Vertex
[src]
impl Pod for Vertex
[src]
impl StructuralPartialEq for Vertex
[src]
Auto Trait Implementations
impl RefUnwindSafe for Vertex
impl Send for Vertex
impl Sync for Vertex
impl Unpin for Vertex
impl UnwindSafe for Vertex
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more