mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-11 00:07:57 -06:00
refactor: split up and move texture-related code into src/texture submodule
This commit is contained in:
11
src/texture/mod.rs
Normal file
11
src/texture/mod.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
use sdl2::{render::Canvas, video::Window};
|
||||
|
||||
use crate::direction::Direction;
|
||||
|
||||
/// Trait for drawable atlas-based textures
|
||||
pub trait FrameDrawn {
|
||||
fn render(&self, canvas: &mut Canvas<Window>, position: (i32, i32), direction: Direction, frame: Option<u32>);
|
||||
}
|
||||
|
||||
pub mod animated;
|
||||
pub mod atlas;
|
||||
Reference in New Issue
Block a user