The editor shell: layout, log, project browser, viewport #41

Open
UnflavoredMeson/Primal_Plus_Plus
opened 2026-11-24 20:16:00 +00:00 by UnflavoredMeson · 0 comments
Owner

Why

A program you can open: pick or create a project, see the log, look around a viewport. Every later editor issue adds a panel to this shell.

Decided

  • Editor/ with three layers: the model (no ImGui), panels (through ui::), and the app.
  • Docking layout; the log panel reads the engine's ring buffer; the project browser opens a project or makes one from a template.
  • The viewport is an offscreen surface (S6-08) with an editor camera (fly and orbit).
  • Shader hot reload runs in the editor's frame.
  • The editor renders on the frame thread (so the job system needs no attach_thread()).

Read first

Steps

  • 1. Write the app and the docking layout.
  • 2. Add the log panel.
  • 3. Add the viewport with the editor camera.
  • 4. Add the project browser (uses S7-04's project file).

Done when

  • The editor opens and makes a project on both OSes; the smoke test covers every panel; 0 warnings; tidy 0.

Claude can help with

  • The camera controls' math, and driving the editor in the VM.

Learn

  • Why the model layer has no ImGui in it.
## Why A program you can open: pick or create a project, see the log, look around a viewport. Every later editor issue adds a panel to this shell. ## Decided - `Editor/` with three layers: the model (no ImGui), panels (through `ui::`), and the app. - Docking layout; the log panel reads the engine's ring buffer; the project browser opens a project or makes one from a template. - The viewport is an offscreen surface (S6-08) with an editor camera (fly and orbit). - Shader hot reload runs in the editor's frame. - The editor renders on the frame thread (so the job system needs no `attach_thread()`). ## Read first - [Editor](https://forgejo.unflavoredmeson.com/UnflavoredMeson/Primal_Plus_Plus/wiki/Editor), sections 5.1-5.4 and 6; [Plan-2026-11-24-editor-step3-shell](https://forgejo.unflavoredmeson.com/UnflavoredMeson/Primal_Plus_Plus/wiki/Plan-2026-11-24-editor-step3-shell). ## Steps - [ ] 1. Write the app and the docking layout. - [ ] 2. Add the log panel. - [ ] 3. Add the viewport with the editor camera. - [ ] 4. Add the project browser (uses S7-04's project file). ## Done when - [ ] The editor opens and makes a project on both OSes; the smoke test covers every panel; 0 warnings; tidy 0. ## Claude can help with - The camera controls' math, and driving the editor in the VM. ## Learn - Why the model layer has no ImGui in it.
Sign in to join this conversation.
No assignees
No project
No milestone
Blocks
#46 Outliner, details, gizmos, undo and redo
UnflavoredMeson/Primal_Plus_Plus
#56 Loading the game library in the editor
UnflavoredMeson/Primal_Plus_Plus
#60 Game-defined log categories
UnflavoredMeson/Primal_Plus_Plus
Depends on
#40 The ui:: widget layer and the theme
UnflavoredMeson/Primal_Plus_Plus
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
UnflavoredMeson/Primal_Plus_Plus#41
No description provided.