Skip to content

Scene and viewport

The Game panel is the editor’s main project-facing viewport. The runtime tracks viewport identity so input, camera state, display settings, and rendered textures remain associated with the window that owns them. A secondary viewport is supported by the renderer contract through viewport-aware callbacks.

Project rendering receives a ViewportId and a mutable RenderContext. The context exposes world-space drawing as well as normalized screen-overlay helpers. Screen overlays are submitted after the world/post-process path with an identity view, which makes them suitable for camera-independent UI without making the engine know what the UI means.

Warp’s current source also contains scene-layer infrastructure and image/atlas paths. Use the primitive drawing and project renderer APIs first; the deeper scene registries and editor panels are still evolving.