Trait rin::gl::Render2d[][src]

pub trait Render2d {
    type Material: Material;
    pub fn default_material(&self) -> Self::Material;
pub fn render_with_material<R, M>(
        &self,
        renderer: &Renderer<'_, R>,
        pos: &Point<f32, U2>,
        material: &M
    )
    where
        M: Material,
        R: RenderSurface
;
pub fn render_size_with_material<R, M>(
        &self,
        renderer: &Renderer<'_, R>,
        pos: &Point<f32, U2>,
        size: &Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>,
        material: &M
    )
    where
        M: Material,
        R: RenderSurface
; pub fn render<R>(&self, renderer: &Renderer<'_, R>, pos: &Point<f32, U2>)
    where
        R: RenderSurface
, { ... }
pub fn render_size<R>(
        &self,
        renderer: &Renderer<'_, R>,
        pos: &Point<f32, U2>,
        size: &Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>
    )
    where
        R: RenderSurface
, { ... } }

Associated Types

type Material: Material[src]

Loading content...

Required methods

pub fn default_material(&self) -> Self::Material[src]

pub fn render_with_material<R, M>(
    &self,
    renderer: &Renderer<'_, R>,
    pos: &Point<f32, U2>,
    material: &M
) where
    M: Material,
    R: RenderSurface
[src]

pub fn render_size_with_material<R, M>(
    &self,
    renderer: &Renderer<'_, R>,
    pos: &Point<f32, U2>,
    size: &Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>,
    material: &M
) where
    M: Material,
    R: RenderSurface
[src]

Loading content...

Provided methods

pub fn render<R>(&self, renderer: &Renderer<'_, R>, pos: &Point<f32, U2>) where
    R: RenderSurface
[src]

pub fn render_size<R>(
    &self,
    renderer: &Renderer<'_, R>,
    pos: &Point<f32, U2>,
    size: &Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>
) where
    R: RenderSurface
[src]

Loading content...

Implementors

impl<'a> Render2d for &'a CubeMap[src]

type Material = Material<'a>

impl<'a> Render2d for &'a Fbo<ColorAttachment, DepthAttachment>[src]

type Material = BasicMaterial<&'a Texture>

impl<'a> Render2d for &'a SimpleFbo[src]

type Material = BasicMaterial<&'a Texture>

impl<'a> Render2d for &'a Texture[src]

type Material = BasicMaterial<&'a Texture>

impl<'a> Render2d for Face<'a>[src]

type Material = Material<'a>

impl<'a> Render2d for Level<'a>[src]

type Material = Material<'a>

impl<'a> Render2d for TextureSampler<'a>[src]

type Material = BasicMaterial<TextureSampler<'a>>

Loading content...