[][src]Trait ggez::graphics::Drawable

pub trait Drawable {
    fn draw<D>(&self, ctx: &mut Context, param: D) -> GameResult
    where
        D: Into<DrawParam>
;
fn set_blend_mode(&mut self, mode: Option<BlendMode>);
fn blend_mode(&self) -> Option<BlendMode>; }

All types that can be drawn on the screen implement the Drawable trait.

Required methods

Draws the drawable onto the rendering target.

ALSO TODO: Expand docs

Sets the blend mode to be used when drawing this drawable. This overrides the general graphics::set_blend_mode(). If None is set, defers to the blend mode set by graphics::set_blend_mode().

Gets the blend mode to be used when drawing this drawable.

Loading content...

Implementors

impl Drawable for SpriteBatch
[src]

impl Drawable for Mesh
[src]

impl Drawable for Text
[src]

impl Drawable for Canvas
[src]

impl Drawable for Image
[src]

Loading content...