[][src]Trait sulis_state::AreaDrawable

pub trait AreaDrawable {
    fn cache(
        &mut self,
        renderer: &mut dyn GraphicsRenderer,
        texture_cache: &mut EntityTextureCache
    );
fn draw(
        &self,
        renderer: &mut dyn GraphicsRenderer,
        scale: Scale,
        x: f32,
        y: f32,
        millis: u32,
        color: Color
    );
fn size(&self) -> Size;
fn location(&self) -> &Location;
fn aerial(&self) -> bool; }

Required methods

fn cache(
    &mut self,
    renderer: &mut dyn GraphicsRenderer,
    texture_cache: &mut EntityTextureCache
)

fn draw(
    &self,
    renderer: &mut dyn GraphicsRenderer,
    scale: Scale,
    x: f32,
    y: f32,
    millis: u32,
    color: Color
)

fn size(&self) -> Size

fn location(&self) -> &Location

fn aerial(&self) -> bool

Loading content...

Implementors

impl AreaDrawable for EntityState[src]

impl AreaDrawable for PropState[src]

Loading content...