feat(renderer2d)!: made text rendering return the bounds of the rendered text for better position control but also changed render_scene_2d signature to take a mutable Scene reference

This commit is contained in:
lisk77 2025-10-25 21:38:14 +02:00
parent ca47efba42
commit dd89d71565
3 changed files with 70 additions and 32 deletions

View file

@ -139,6 +139,11 @@ impl App {
&self.scene
}
/// Retrieves a mutable reference to the current `Scene` in the `App`
pub fn scene_mut(&mut self) -> &mut Scene {
&mut self.scene
}
/// Retrieves a reference to the `InputManager`.
pub fn input_manager(&self) -> &InputManager {
&self.input_manager