Trait rin::prelude::RectToMesh[][src]

pub trait RectToMesh {
    pub fn to_mesh(
        self
    ) -> Mesh<Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>>;
pub fn to_color_mesh<C>(self, color: &C) -> Mesh<Vertex2DColor>
    where
        C: ToRgba
;
pub fn to_tex_mesh(self, tex: Rect<f32>) -> Mesh<Vertex2DTex>;
pub fn to_gradient_mesh<C>(
        self,
        gradient: &Gradient<C>
    ) -> Mesh<Vertex2DColor>
    where
        C: ToRgba + ToRgb
; }

Required methods

pub fn to_mesh(
    self
) -> Mesh<Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>>
[src]

pub fn to_color_mesh<C>(self, color: &C) -> Mesh<Vertex2DColor> where
    C: ToRgba
[src]

pub fn to_tex_mesh(self, tex: Rect<f32>) -> Mesh<Vertex2DTex>[src]

pub fn to_gradient_mesh<C>(self, gradient: &Gradient<C>) -> Mesh<Vertex2DColor> where
    C: ToRgba + ToRgb
[src]

Loading content...

Implementors

impl RectToMesh for Rect<f32>[src]

Loading content...