diff options
| author | Arne Dußin | 2020-10-30 22:32:28 +0100 |
|---|---|---|
| committer | Arne Dußin | 2020-10-30 22:32:28 +0100 |
| commit | 48c425a193cb13012eb9303df56ac04b9d683ed4 (patch) | |
| tree | dbc7fc9bd4e595bd8438d4233c08fe3775c5c690 /src/tool/mod.rs | |
| parent | 20c73199167ce3ef1b4a256db5a95acab8f467b3 (diff) | |
| download | graf_karto-48c425a193cb13012eb9303df56ac04b9d683ed4.tar.gz graf_karto-48c425a193cb13012eb9303df56ac04b9d683ed4.zip | |
Rewrite project to use raylib instead of piston
Sorry piston.. I really tried liking you, but I just couldn't :/
It's not you, it's me. What am I saying? It's you, sorry not sorry.
Diffstat (limited to 'src/tool/mod.rs')
| -rw-r--r-- | src/tool/mod.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tool/mod.rs b/src/tool/mod.rs new file mode 100644 index 0000000..e0d4f1e --- /dev/null +++ b/src/tool/mod.rs @@ -0,0 +1,16 @@ +pub mod room_tool; +pub use room_tool::RoomTool; + +use crate::transform::Transform; +use raylib::core::drawing::RaylibDraw; +use raylib::RaylibHandle; + +pub trait Tool { + fn update(&mut self, rl: &RaylibHandle, transform: &Transform); + + fn draw<D>(&self, _rld: &mut D, _transform: &Transform) + where + D: RaylibDraw, + { + } +} |
