swamp_render::api

Trait Gfx

Source
pub trait Gfx {
    // Required methods
    fn set_origo(&mut self, position: Vec2);
    fn sprite_atlas_frame(
        &mut self,
        position: Vec3,
        frame: u16,
        atlas: &impl FrameLookup,
    );
    fn now(&self) -> Millis;
}

Required Methods§

Source

fn set_origo(&mut self, position: Vec2)

Source

fn sprite_atlas_frame( &mut self, position: Vec3, frame: u16, atlas: &impl FrameLookup, )

Source

fn now(&self) -> Millis

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§