[][src]Trait sfml_rust::canvas::Drawable

pub trait Drawable {
    fn get_vertices(&self) -> Vec<(f32, f32)>;
fn get_color(&self) -> (f32, f32, f32, f32);
fn get_texture_handle(&self) -> Option<Arc<CanvasTextureHandle>>;
fn get_image_handle(&self) -> Option<Arc<CanvasImageHandle>>; }

A drawable object can be passed into a CanvasFrame to be rendered Allows Texture or Image drawing via their handles

Required methods

fn get_vertices(&self) -> Vec<(f32, f32)>

fn get_color(&self) -> (f32, f32, f32, f32)

fn get_texture_handle(&self) -> Option<Arc<CanvasTextureHandle>>

fn get_image_handle(&self) -> Option<Arc<CanvasImageHandle>>

Loading content...

Implementors

impl Drawable for CompuSprite[src]

impl Drawable for Sprite[src]

Loading content...