Trait rin_graphics::RectToMesh [−][src]
pub trait RectToMesh { fn to_mesh(self) -> Mesh<Vec2>; fn to_color_mesh<C: ToRgba>(self, color: &C) -> Mesh<Vertex2DColor>; fn to_tex_mesh(self, tex: Rect<f32>) -> Mesh<Vertex2DTex>; fn to_gradient_mesh<C: ToRgba + ToRgb>(
self,
gradient: &Gradient<C>
) -> Mesh<Vertex2DColor>; }
Required methods
fn to_mesh(self) -> Mesh<Vec2>
[src]
fn to_color_mesh<C: ToRgba>(self, color: &C) -> Mesh<Vertex2DColor>
[src]
fn to_tex_mesh(self, tex: Rect<f32>) -> Mesh<Vertex2DTex>
[src]
fn to_gradient_mesh<C: ToRgba + ToRgb>(
self,
gradient: &Gradient<C>
) -> Mesh<Vertex2DColor>
[src]
self,
gradient: &Gradient<C>
) -> Mesh<Vertex2DColor>
Implementations on Foreign Types
impl RectToMesh for Rect<f32>
[src]
impl RectToMesh for Rect<f32>
[src]fn to_mesh(self) -> Mesh<Vec2>
[src]
fn to_color_mesh<C: ToRgba>(self, color: &C) -> Mesh<Vertex2DColor>
[src]
fn to_tex_mesh(self, tex: Rect<f32>) -> Mesh<Vertex2DTex>
[src]
fn to_gradient_mesh<C: ToRgba + ToRgb>(
self,
gradient: &Gradient<C>
) -> Mesh<Vertex2DColor>
[src]
self,
gradient: &Gradient<C>
) -> Mesh<Vertex2DColor>