From 3884ca7acbed316ebeea2b1e20507dcebae9bd49 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 23 Apr 2025 13:22:05 +0200 Subject: refactor(engine): add RENDER_PHASE to replace PRESENT phase --- engine/src/window.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engine/src/window.rs') diff --git a/engine/src/window.rs b/engine/src/window.rs index 614ed92..d342341 100644 --- a/engine/src/window.rs +++ b/engine/src/window.rs @@ -5,7 +5,7 @@ use bitflags::bitflags; use ecs::actions::Actions; use ecs::extension::Collector as ExtensionCollector; use ecs::pair::{ChildOf, Pair}; -use ecs::phase::{Phase, PRESENT as PRESENT_PHASE, START as START_PHASE}; +use ecs::phase::{Phase, START as START_PHASE}; use ecs::sole::Single; use ecs::{static_entity, Sole}; use glfw::window::{Hint as WindowCreationHint, HintValue as WindowCreationHintValue}; @@ -13,11 +13,12 @@ use glfw::WindowSize; use util_macros::VariantArr; use crate::data_types::dimens::Dimens; +use crate::renderer::RENDER_PHASE; use crate::vector::Vec2; static_entity!( pub UPDATE_PHASE, - (Phase, Pair::new::(*PRESENT_PHASE)) + (Phase, Pair::new::(*RENDER_PHASE)) ); #[derive(Debug, Sole)] -- cgit v1.2.3-18-g5258