spitfire_draw::utils

Trait Drawable

Source
pub trait Drawable {
    // Required method
    fn draw(&self, context: &mut DrawContext, graphics: &mut Graphics<Vertex>);
}

Required Methods§

Source

fn draw(&self, context: &mut DrawContext, graphics: &mut Graphics<Vertex>)

Implementors§

Source§

impl Drawable for NineSliceSprite

Source§

impl Drawable for Sprite

Source§

impl Drawable for Text

Source§

impl<'a> Drawable for RegularPolygonDraw<'a>

Source§

impl<'a, I: IntoIterator<Item = (Vec2<f32>, f32, Rgba<f32>)>> Drawable for BrushDraw<'a, I>

Source§

impl<'a, I: IntoIterator<Item = ParticleInstance>> Drawable for ParticleDraw<'a, I>

Source§

impl<'a, I: IntoIterator<Item = TileInstance>> Drawable for TilesDraw<'a, I>

Source§

impl<'a, I: IntoIterator<Item = Vec2<f32>>> Drawable for LinesDraw<'a, I>

Source§

impl<'a, I: IntoIterator<Item = Vertex>> Drawable for TriangleFanDraw<'a, I>

Source§

impl<'a, I: IntoIterator<Item = Vertex>> Drawable for TriangleStripDraw<'a, I>

Source§

impl<'a, I: IntoIterator<Item = [Vertex; 3]>> Drawable for TrianglesDraw<'a, I>