mirror of
https://github.com/lisk77/comet.git
synced 2025-12-12 17:18:50 +00:00
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:
parent
ca47efba42
commit
dd89d71565
3 changed files with 70 additions and 32 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue