Skip to main content

Module ui_only

Module ui_only 

Source
Expand description

The UI-only scene: egui drawn into a frame with no mesh source and no camera.

Ported from the ui_only_draws_without_a_camera snapshot test: the frame shape that used to produce nothing, because the renderer bailed out when the world held no camera. The snapshot ui_only.webp freezes the second frame β€” the first only warms egui’s font atlas up.

Re-exportsΒ§

use super::SceneControl; πŸ”’
use super::SceneDef; πŸ”’
use super::SceneOptions; πŸ”’
use super::TEST_SIZE; πŸ”’
use unlit3d::ui::egui; πŸ”’
use unlit3d::prelude::*; πŸ”’

StructsΒ§

Rect πŸ”’
A rectangle in logical points.

ConstantsΒ§

BAND πŸ”’
CLEAR_COLOR πŸ”’
The colour the scene clears to, distinguishable from every panel.
LIGHT_GREEN πŸ”’
A shade of test_image the scene’s painted circle reuses.
PICTURE πŸ”’
WIDGETS πŸ”’
Where the rich panel puts its parts, in logical points.

StaticsΒ§

SCENE
The scene: a rich egui interface and nothing else.

FunctionsΒ§

build πŸ”’
Build the UI-only scene’s world content.
rich_panel πŸ”’
A rich, deterministic interface: real widgets, a texture and painted geometry.
test_image πŸ”’
The texels of the test image: four quadrants, each checkerboarded between a light and a dark shade.