Struct lux::graphics::TexVertex [] [src]

pub struct TexVertex {
    pub pos: [f32; 2],
    pub tex_coords: [f32; 2],
}

A textured vertex.

tex_coords is the position on the texture where x and y are in the range 0.0 to 1.0.

Fields

pos

The position in screen space

tex_coords

The texture cooordinates [x, y] where x and y are in the range 0.0 to 1.0.

Trait Implementations

impl Vertex for TexVertex

fn build_bindings() -> VertexFormat

fn is_supported<C>(caps: &C) -> bool where C: CapabilitiesSource

Derived Implementations

impl Clone for TexVertex

fn clone(&self) -> TexVertex

fn clone_from(&mut self, source: &Self)

impl Debug for TexVertex

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Copy for TexVertex