Skip to main content

Module mesh_and_ui

Module mesh_and_ui 

Source
Expand description

The mesh-and-UI scene: a cube and a rich egui panel in one pass.

Ported from the mesh_and_ui_in_one_frame snapshot test: the frame where the mesh source and the UI source have to agree on record order, scissor state and the frame’s load ops. The snapshot mesh_and_ui.webp freezes the second frame.

Re-exportsΒ§

use super::SceneControl; πŸ”’
use super::SceneDef; πŸ”’
use super::SceneOptions; πŸ”’
use super::TEST_SIZE; πŸ”’
use super::camera_view; πŸ”’
use super::cube; πŸ”’
use super::default_options; πŸ”’
use unlit_ecs::Bundle; πŸ”’
use unlit_ecs::DynamicBundle; πŸ”’
use unlit_ecs::bundle; πŸ”’
use unlit3d::prelude::*; πŸ”’

StructsΒ§

TiltedCube πŸ”’
The scene’s one visible object: a cube tilted towards the camera.

ConstantsΒ§

CLEAR_COLOR πŸ”’
The colour the scene clears to.

StaticsΒ§

SCENE
The scene: a cube with the same rich interface over it.

FunctionsΒ§

build πŸ”’
Build the mesh-and-UI scene’s world content.