[][src]Trait keeshond::renderer::DrawControl

pub trait DrawControl {
    fn get_screen_transform(&self) -> Mat3;
fn sync_sheet_store(
        &mut self,
        sheet_store: &mut DataStore<Sheet>
    ) -> Result<(), PreparedStoreError>;
fn sync_shader_store(
        &mut self,
        shader_store: &mut DataStore<Shader>
    ) -> Result<(), PreparedStoreError>;
fn draw_sprite(&mut self, draw_info: &DrawSpriteInfo);
fn draw_background_color(&mut self, draw_info: &DrawBackgroundColorInfo);
fn recalculate_viewport(&mut self, base_width: f32, base_height: f32);
fn start_drawing(&mut self);
fn present(&mut self);
fn flush_drawing(&mut self); }

Required methods

fn get_screen_transform(&self) -> Mat3

fn sync_sheet_store(
    &mut self,
    sheet_store: &mut DataStore<Sheet>
) -> Result<(), PreparedStoreError>

fn sync_shader_store(
    &mut self,
    shader_store: &mut DataStore<Shader>
) -> Result<(), PreparedStoreError>

fn draw_sprite(&mut self, draw_info: &DrawSpriteInfo)

fn draw_background_color(&mut self, draw_info: &DrawBackgroundColorInfo)

fn recalculate_viewport(&mut self, base_width: f32, base_height: f32)

fn start_drawing(&mut self)

fn present(&mut self)

fn flush_drawing(&mut self)

Loading content...

Implementors

impl DrawControl for GlDrawControl[src]

impl DrawControl for NullDrawControl[src]

Loading content...