summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-12-09 14:10:09 +0100
committerHampusM <hampus@hampusmat.com>2024-12-09 14:10:09 +0100
commit3553a24c86791f6f4501e3d19fb85f267435cf70 (patch)
treed01a874060d1d2f83c3f23843cc4528a9951fcff
parent936c801305dfb053dd3e67687f61b7201d9e1064 (diff)
chore: use start phase
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index efe422c..a982dbb 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -10,8 +10,8 @@ use engine::camera::fly::{
use engine::camera::{Active as ActiveCamera, Camera};
use engine::color::Color;
use engine::data_types::dimens::Dimens;
+use engine::ecs::phase::START as START_PHASE;
use engine::ecs::sole::Single;
-use engine::event::Start as StartEvent;
use engine::file_format::wavefront::mtl::parse as parse_mtl;
use engine::file_format::wavefront::obj::parse as parse_obj;
use engine::input::Extension as InputExtension;
@@ -99,7 +99,7 @@ fn main() -> Result<(), Box<dyn Error>>
engine.add_sole(GlobalLight::default())?;
- engine.register_system(StartEvent, prepare_window);
+ engine.register_system(*START_PHASE, prepare_window);
engine.add_extension(OpenglRendererExtension::default());