Trait rin::graphics::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]
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, [src]
C: ToRgba,
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]
C: ToRgba + ToRgb,
Implementors
impl RectToMesh for Rect<f32>[src]
impl RectToMesh for Rect<f32>[src]pub fn to_mesh(
self
) -> Mesh<Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>>[src]
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, [src]
C: ToRgba,
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]
C: ToRgba + ToRgb,