app: refactor WindowContext name and creation
This commit is contained in:
parent
a293b962f7
commit
45ccf030f6
6 changed files with 42 additions and 52 deletions
|
@ -1,6 +1,6 @@
|
|||
use std::error::Error;
|
||||
|
||||
use crate::core::app::context::ApplicationContext;
|
||||
use crate::core::app::context::WindowContext;
|
||||
|
||||
use super::Scene;
|
||||
|
||||
|
@ -51,7 +51,7 @@ impl SceneManager {
|
|||
|
||||
pub fn load_scene_if_not_loaded(
|
||||
&mut self,
|
||||
app_context: &mut ApplicationContext,
|
||||
app_context: &mut WindowContext,
|
||||
) -> Result<(), Box<dyn Error>> {
|
||||
if let Some(scene) = self.current_scene_mut() {
|
||||
if !scene.loaded() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue