[][src]Trait ruckus::vertex::Vertex2DSliceOps

pub trait Vertex2DSliceOps<'a> {
    fn set_color(&mut self, color: &Vec4);
fn translate(&mut self, xform: &Transform);
fn calc_texture_coords(&mut self, texture_rect: &Rectui);
fn flip_texture_coords_vert(&mut self, min: f32, max: f32);
fn normalize_texture_coords(&mut self, bounds: Vec2); }

Required methods

fn set_color(&mut self, color: &Vec4)

fn translate(&mut self, xform: &Transform)

fn calc_texture_coords(&mut self, texture_rect: &Rectui)

fn flip_texture_coords_vert(&mut self, min: f32, max: f32)

Flips given verts tex coordinates along vertical (y) axis. Assumes coordinates are NDC

fn normalize_texture_coords(&mut self, bounds: Vec2)

Loading content...

Implementations on Foreign Types

impl<'a, '_> Vertex2DSliceOps<'a> for IterMut<'_, Vertex2D>[src]

Loading content...

Implementors

Loading content...