Skip to content

refactor: separate editor UI and runtime rendering - #438

Merged
FlyAndNotDown merged 4 commits into
ExplosionEngine:masterfrom
FlyAndNotDown:master
Nov 15, 2026
Merged

FlyAndNotDown merged 4 commits into
ExplosionEngine:masterfrom
FlyAndNotDown:master

Conversation

@FlyAndNotDown

Copy link
Copy Markdown
Member

Editor UI, scene editing, and presentation previously shared application and window state. This refactor gives business windows, dockable tabs, and scene viewports explicit responsibilities and lifetimes, with GLFW and ImGui confined to the editor and launcher.

  • Introduce a minimal Runtime::Window lifecycle. Windows register with Engine automatically, and Engine::Tick coordinates window updates, world ticks, and rendering.
  • Replace Frame roots with EditorMainWindow and ProjectHubWindow, share ImGuiWindow behavior, and unify dockable tools through EditorTab.
  • Separate host-owned worlds from SceneViewport and GameViewport. Each viewport owns its render history; Render::Canvas and SwapChainSurface provide offscreen and presented outputs through RenderSurface.
  • Extract ImGui platform/rendering backends and draw-data snapshots, plus project creation, recent-project persistence, and process-launch services.
  • Keep foundational editor tests and document the project's English-only, pragmatic coding guidelines in AGENTS.md.

Validation: Debug/Ninja full build passed, including compilation of existing tests and rendering samples; git diff checks passed. Local GUI and runtime tests were not run. The PR Build workflow covers Windows, macOS, and Linux.

Extract a shared tab lifecycle and use tab descriptors to drive view menus and docking. Prefer Common::Path in the new editor interfaces.

Keep Editor.Test focused on basic logic and document English-only, pragmatic coding guidelines.
@FlyAndNotDown
FlyAndNotDown merged commit 23cb108 into ExplosionEngine:master Nov 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant