Trait rin_gl::renderer::Render2d[][src]

pub trait Render2d {
    type Material: Material;
    fn default_material(&self) -> Self::Material;
fn render_with_material<R: RenderSurface, M: Material>(
        &self,
        renderer: &Renderer<'_, R>,
        pos: &Pnt2,
        material: &M
    );
fn render_size_with_material<R: RenderSurface, M: Material>(
        &self,
        renderer: &Renderer<'_, R>,
        pos: &Pnt2,
        size: &Vec2,
        material: &M
    ); fn render<R: RenderSurface>(&self, renderer: &Renderer<'_, R>, pos: &Pnt2) { ... }
fn render_size<R: RenderSurface>(
        &self,
        renderer: &Renderer<'_, R>,
        pos: &Pnt2,
        size: &Vec2
    ) { ... } }

Associated Types

type Material: Material[src]

Loading content...

Required methods

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

fn render_with_material<R: RenderSurface, M: Material>(
    &self,
    renderer: &Renderer<'_, R>,
    pos: &Pnt2,
    material: &M
)
[src]

fn render_size_with_material<R: RenderSurface, M: Material>(
    &self,
    renderer: &Renderer<'_, R>,
    pos: &Pnt2,
    size: &Vec2,
    material: &M
)
[src]

Loading content...

Provided methods

fn render<R: RenderSurface>(&self, renderer: &Renderer<'_, R>, pos: &Pnt2)[src]

fn render_size<R: RenderSurface>(
    &self,
    renderer: &Renderer<'_, R>,
    pos: &Pnt2,
    size: &Vec2
)
[src]

Loading content...

Implementors

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

type Material = Material<'a>

impl<'a> Render2d for &'a Fbo[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...