From 068c8be089abd773b8fe97191954d7a969febc38 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sun, 25 Apr 2021 19:08:42 -0400 Subject: [PATCH] rm complexanimation --- src/lib/wrappers/complexanimation.rs | 32 ---------------------------- src/lib/wrappers/mod.rs | 3 +-- 2 files changed, 1 insertion(+), 34 deletions(-) delete mode 100644 src/lib/wrappers/complexanimation.rs diff --git a/src/lib/wrappers/complexanimation.rs b/src/lib/wrappers/complexanimation.rs deleted file mode 100644 index ad87572..0000000 --- a/src/lib/wrappers/complexanimation.rs +++ /dev/null @@ -1,32 +0,0 @@ -use std::usize; - -use raylib::prelude::*; - -pub struct FrameRange { - pub min: usize, - pub max: usize, -} - -pub struct ComplexAnimationTool { - sprite_sheet: Texture2D, - frames_per_second: f32, - frame_size: Vector2, - sprite_sheet_size_frames: Vector2 -} - -impl ComplexAnimationTool { - pub fn render_loop(&self, context_2d: &mut RaylibMode2D, bounds: Rectangle, rotation: f32, range: &FrameRange) { - - } - - pub fn render_frame(&self, context_2d: &mut RaylibMode2D, bounds: Rectangle, rotation: f32, id: usize) { - - // Convert the ID to an xy - let col_id = id % self.sprite_sheet_size_frames.x as usize; - let row_id = id / self.sprite_sheet_size_frames.y as usize; - - - - - } -} diff --git a/src/lib/wrappers/mod.rs b/src/lib/wrappers/mod.rs index 1a8f43a..9af9ea2 100644 --- a/src/lib/wrappers/mod.rs +++ b/src/lib/wrappers/mod.rs @@ -1,3 +1,2 @@ pub mod audio; -pub mod animation; -pub mod complexanimation; \ No newline at end of file +pub mod animation; \ No newline at end of file