summaryrefslogtreecommitdiff
path: root/pixel-client/src/menu.rs
diff options
context:
space:
mode:
Diffstat (limited to 'pixel-client/src/menu.rs')
-rw-r--r--pixel-client/src/menu.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/pixel-client/src/menu.rs b/pixel-client/src/menu.rs
index a3242edb..d9396e49 100644
--- a/pixel-client/src/menu.rs
+++ b/pixel-client/src/menu.rs
@@ -1,4 +1,5 @@
-use crate::render::{AtlasLayout, SpriteRenderer};
+use crate::render::{AtlasLayout, Renderer};
+use hurrycurry_protocol::glam::Vec2;
use sdl2::keyboard::KeyboardState;
pub struct Menu {}
@@ -14,5 +15,7 @@ impl Menu {
Self {}
}
pub fn tick(&mut self, _dt: f32, _keyboard: &KeyboardState, _layout: &AtlasLayout) {}
- pub fn draw(&self, _ctx: &mut SpriteRenderer) {}
+ pub fn draw(&self, ctx: &mut Renderer) {
+ ctx.draw_text(Vec2::new(1., 1.), "Hello world!");
+ }
}