Commit Graph

9 Commits

Author SHA1 Message Date
burkkyy 5e1caabde6 Add offscreen render targets and rename AssetRegistry to ResourceRegistry
Add a RenderTarget resource so the scene can render offscreen instead of
straight to the swapchain. The editor uses it to show the scene inside the
Viewport panel.

- Rename AssetRegistry to ResourceRegistry (AssetTraits -> ResourceTraits,
  assets() -> resources()) and move the pools from engine/src/assets to
  engine/src/resources. It now covers non-asset GPU resources as well.
- Replace loadMesh() with create<T>(...), and add create<RenderTarget>(),
  requestResize(), getExtent() and isAlive().
- Add RenderTarget and RenderTargetPool with RenderTargetHandle.
  Resizes are deferred and applied at the start of the next frame, when the
  GPU is idle.
- Add Application::setSceneTarget(). With no target set, the scene still
  renders to the swapchain. With a target set, the scene renders offscreen
  and the swapchain receives only the UI. Frame extent and camera projection
  follow the target's size.
- Add sophia::UI (Application::ui()) with image() and getTextureId() to draw
  a render target in an ImGui window, sizing the target to the available
  space. ImGuiRenderer now registers the target textures for this.
- ViewportPanel takes the UI and a target, and draws the scene image in place
  of the flat background fill.
- Update the testbed, the boids example, and the glossary for the rename.
2026-09-20 16:21:22 -07:00
burkkyy da6bda7ca7 Supporting setting panel layout 2026-09-19 19:41:39 -07:00
burkkyy 169ff4a277 Made console command registry a better usage pattern 2026-09-16 01:59:34 -07:00
burkkyy b16507c61d application updated 2026-09-15 02:28:28 -07:00
burkkyy 4190ff847b asset_manager concept 2026-09-09 11:36:07 -07:00
burkkyy 73d2121bc1 renamed model to mesh 2026-09-08 22:48:59 -07:00
burkkyy dc8b363354 Big application changes 2026-09-06 23:41:40 -07:00
burkkyy 99e06bbbb1 Big changes 2026-08-26 03:18:05 -07:00
burkkyy 0cb0628101 Big code changes 2026-08-23 20:46:09 -07:00