Module gizmo
Expand description
Editor gizmo geometry generation.
Pure functions that generate wireframe line segments for rendering
in the 3D viewport. All math goes through khora_core::math.
Structs§
- Gizmo
Line Instance - A single line segment for GPU rendering.
- Selection
Gizmo - One selected entity’s gizmo request.
Enums§
- Gizmo
Kind - The kind of gizmo to draw for an entity.
Functions§
- camera_
frustum - Generates a wireframe camera frustum at the given transform.
- directional_
light_ icon - Generates a directional light icon (arrow).
- generate_
selection_ gizmos - Generates all gizmo lines for a set of selected entities.
- gizmo_
world_ size - World size a manipulator at
originneeds to occupy a constant fraction of the viewport, whatever its distance from the camera. - manipulator
- The interactive handles for
mode, drawn atpivotalongbasis. - transform_
axes - Generates XYZ axis lines at the given transform.
- wireframe_
cube - Generates a wireframe cube gizmo at the given world-space transform.
- wireframe_
sphere - Generates a wireframe sphere for point lights.