Commit Graph
10 Commits
Author SHA1 Message Date
coding-agent 167bbce163 refactor: rename WindowManager to Application; move world ownership up
WindowManager.{h,cpp} -> Application.{h,cpp}

The Application class now owns the long-lived world (Scene, SystemGraph,
GameInterface) and is the single setup point. This removes the per-view
duplication where each GameView/PlayView loaded the binary and ran the
simulation independently, which double-simulated with two windows open.

Changes:
- WindowManager -> Application (class, files, includes, CMake)
- Application owns OScene scene_ / OSystemGraph graph_ (OwningPtr)
  and GameInterface* gameInterface (raw, deleted in dtor)
- loadGame(graphics, path, name): single world-setup point
  (dlopen -> setupScene -> append 5 editor systems)
- attachWorld(OScene, OSystemGraph): worldless hosts (benchmark)
  hand ownership in via move
- Frame-loop fix: systemGraph->run() now runs ONCE per frame, before
  the window loop (was per-window -> double-simulated with 2 windows)
- Editor/main.cpp + Benchmark/main.cpp rewired to the new API
- Window.h/.cpp: PWindowManager back-pointer -> PApplication
- 8 include paths updated to Window/Application.h

Compile-verified: Application.cpp, Editor/main.cpp, Benchmark/main.cpp
all pass g++ -std=c++23 -fsyntax-only against the full third-party
include set.
2026-11-09 17:23:42 +00:00
Dynamitos 1bb36333e6 Fix miscellaneus errors 2026-11-08 23:00:57 +01:00
Dynamitos df5b2b6795 Minor changes 2026-03-13 22:30:46 +01:00
Dynamitos a957b05615 adding basic tone mapping 2025-03-10 18:35:35 +01:00
Dynamitos 44b147084b rt backface culling 2025-01-29 21:55:11 +01:00
Dynamitos 289b759498 Trying out more debugging 2024-10-27 14:41:23 +01:00
Dynamitos 6eb114e892 Lot more Metal changes 2024-08-28 17:54:14 +02:00
Dynamitos 3b6eb3ebcc Fixing destruction 2024-07-18 11:45:56 +02:00
Dynamitos acf8dde8fc Some ray tracing changes 2024-07-08 13:46:49 +02:00
Dynamitos fd8dc5ed0f Adding benchmark 2024-07-05 12:02:46 +02:00