Skip to main content

Module gizmo

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§

GizmoLineInstance
A single line segment for GPU rendering.
SelectionGizmo
One selected entity’s gizmo request.

Enums§

GizmoKind
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 origin needs to occupy a constant fraction of the viewport, whatever its distance from the camera.
manipulator
The interactive handles for mode, drawn at pivot along basis.
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.