Trait riddle_renderer_common::CommonRenderer[][src]

pub trait CommonRenderer: Sized {
    type RenderContext: RenderContext<Self>;
    type Sprite: CommonSprite<Self>;
    type Texture;
    type Shader;
    type SpriteFont;
    fn dimensions(&self) -> Vector2<f32>;
fn render<R, F>(&self, f: F) -> Result<R, RendererError>
    where
        F: FnOnce(&mut Self::RenderContext) -> Result<R, RendererError>
; }

The root object of a renderer implementation, associated with a single display.

Associated Types

type RenderContext: RenderContext<Self>[src]

type Sprite: CommonSprite<Self>[src]

type Texture[src]

type Shader[src]

type SpriteFont[src]

Loading content...

Required methods

fn dimensions(&self) -> Vector2<f32>[src]

fn render<R, F>(&self, f: F) -> Result<R, RendererError> where
    F: FnOnce(&mut Self::RenderContext) -> Result<R, RendererError>, 
[src]

Loading content...

Implementors

Loading content...