Commit Graph

10 Commits

Author SHA1 Message Date
burkkyy 9d2b167f70 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:20:28 -07:00
burkkyy dffb7b7972 Changes:
- editor project
- build system fixes
- dummy data editor panels mock
2026-09-16 02:28:42 -07:00
burkkyy 1229f5c017 test bed testing debugUI 2026-09-15 02:24:44 -07:00
burkkyy 6e2c6c0fc5 2d boids example done 2026-09-13 00:52:08 -07:00
burkkyy dc40e973d3 testbed update + triangle example new pattern 2026-09-06 23:39:17 -07:00
burkkyy df5edaa397 render triangle tester 2026-08-28 00:28:54 -07:00
burkkyy 99e06bbbb1 Big changes 2026-08-26 03:18:05 -07:00
burkkyy 518c664741 Better file pick up with cmake 2026-08-23 20:55:17 -07:00
burkkyy c9fa1b8299 Updated build env 2026-08-23 20:46:40 -07:00
burkkyy 263b6da528 copying code over from alphane engine 2026-08-14 06:09:53 +00:00