Skip to main content

Module ui_layer

Module ui_layer 

Source
Expand description

Screen-space UI layer — bypasses the 3D camera and renders in pixel coordinates.

The UI layer renders AFTER the 3D scene and post-processing but BEFORE the final composite. UI elements are pixel-perfect, unaffected by bloom or distortion, and positioned in screen coordinates: (0,0) = top-left.

§Architecture

3D scene → PostFx (bloom, CA, grain) → UI Layer (ortho, no FX) → screen

The UI layer collects draw commands each frame via UiLayer::draw_* methods, then flushes them all in one pass via UiLayerRenderer.

Structs§

UiLayer
The screen-space UI layer. Collects draw commands each frame, then renders them all in a single pass with an orthographic projection.

Enums§

BorderStyle
Border drawing styles for panels.
TextAlign
Text alignment.
UiDrawCommand
A single UI draw command, queued and executed in order.