blob: d9396e493dc6672c7c010e9e33b5b736144bcc25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
use crate::render::{AtlasLayout, Renderer};
use hurrycurry_protocol::glam::Vec2;
use sdl2::keyboard::KeyboardState;
pub struct Menu {}
impl Default for Menu {
fn default() -> Self {
Self::new()
}
}
impl Menu {
pub fn new() -> Self {
Self {}
}
pub fn tick(&mut self, _dt: f32, _keyboard: &KeyboardState, _layout: &AtlasLayout) {}
pub fn draw(&self, ctx: &mut Renderer) {
ctx.draw_text(Vec2::new(1., 1.), "Hello world!");
}
}
|