[][src]Trait game::render::Renderable

pub trait Renderable {
    fn get_id(&self) -> ID;
fn draw(&self, g: &mut GfxCtx<'_>, app: &App, opts: &DrawOptions);
fn get_outline(&self, map: &Map) -> Polygon; fn get_zorder(&self) -> isize { ... }
fn contains_pt(&self, pt: Pt2D, map: &Map) -> bool { ... } }

Required methods

fn get_id(&self) -> ID

fn draw(&self, g: &mut GfxCtx<'_>, app: &App, opts: &DrawOptions)

fn get_outline(&self, map: &Map) -> Polygon

Loading content...

Provided methods

fn get_zorder(&self) -> isize

fn contains_pt(&self, pt: Pt2D, map: &Map) -> bool

Loading content...

Implementors

impl Renderable for DrawArea[src]

impl Renderable for DrawBike[src]

impl Renderable for DrawBuilding[src]

impl Renderable for DrawBusStop[src]

impl Renderable for DrawCar[src]

impl Renderable for DrawIntersection[src]

impl Renderable for DrawLane[src]

impl Renderable for DrawParkingLot[src]

impl Renderable for DrawPedCrowd[src]

impl Renderable for DrawPedestrian[src]

impl Renderable for DrawRoad[src]

Loading content...