Add code to render text, refactor render into OOPish
This commit is contained in:
@@ -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>,
|
||||
}
|
||||
Reference in New Issue
Block a user