summaryrefslogtreecommitdiff
path: root/engine/src/lib.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-10-18 17:04:28 +0200
committerHampusM <hampus@hampusmat.com>2025-10-18 17:04:28 +0200
commit7083a19bf1029bff21a9550d40cc3260e99aac53 (patch)
tree524a8bd2e75ca712b0536218089804cf9838553b /engine/src/lib.rs
parent7f3072ed7e016dff359439d7580403e36ad6b325 (diff)
refactor(engine): use winit instead of glfw
Diffstat (limited to 'engine/src/lib.rs')
-rw-r--r--engine/src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/src/lib.rs b/engine/src/lib.rs
index a18cebb..d5531c1 100644
--- a/engine/src/lib.rs
+++ b/engine/src/lib.rs
@@ -36,7 +36,7 @@ pub mod projection;
pub mod renderer;
pub mod texture;
pub mod transform;
-pub mod window;
+pub mod windowing;
pub extern crate ecs;
@@ -57,6 +57,9 @@ impl Engine
#[must_use]
pub fn new() -> Self
{
+ #[cfg(windows)]
+ nu_ansi_term::enable_ansi_support().unwrap();
+
let mut world = World::new();
world.add_sole(DeltaTime::default()).ok();