Add code to render text, refactor render into OOPish

This commit is contained in:
2026-04-19 20:18:17 +01:00
parent e28d4fdb22
commit dc0581c8cc
4 changed files with 61 additions and 38 deletions
-6
View File
@@ -1,13 +1,7 @@
use sdl3::{render::Canvas, ttf::Font, video::Window};
pub struct Prefs {
pub font_path: String,
pub screen_width: u32,
pub screen_height: u32,
}
pub struct Screen<'a> {
pub canvas: &'a Canvas<Window>,
pub font: &'a Font<'a>,
}