Kohi Game Engine
editor_gizmo Struct Reference

#include <editor_gizmo.h>

Data Fields

ktransform ktransform_handle
 The transform of the gizmo. More...
 
ktransform selected_transform
 A handle to the currently selected object's transform. Invalid handle if nothing is selected. More...
 
editor_gizmo_mode mode
 The current mode of the gizmo. More...
 
vec3 initial_position
 
vec3 initial_scale
 
quat initial_rotation
 
f32 scale_scalar
 Used to keep the gizmo a consistent size on the screen despite camera distance. More...
 
editor_gizmo_orientation orientation
 Indicates the editor transform operaton orientation. More...
 
editor_gizmo_mode_data mode_data [EDITOR_GIZMO_MODE_MAX+1]
 The data for each mode of the gizmo. More...
 
editor_gizmo_interaction_type interaction
 
b8 is_dirty
 
mat4 render_model
 
f32 world_scale
 
mat4 render_projection
 

Field Documentation

◆ initial_position

vec3 initial_position

◆ initial_rotation

quat initial_rotation

◆ initial_scale

vec3 initial_scale

◆ interaction

◆ is_dirty

b8 is_dirty

◆ ktransform_handle

ktransform ktransform_handle

The transform of the gizmo.

◆ mode

The current mode of the gizmo.

◆ mode_data

The data for each mode of the gizmo.

◆ orientation

Indicates the editor transform operaton orientation.

◆ render_model

mat4 render_model

◆ render_projection

mat4 render_projection

◆ scale_scalar

f32 scale_scalar

Used to keep the gizmo a consistent size on the screen despite camera distance.

◆ selected_transform

ktransform selected_transform

A handle to the currently selected object's transform. Invalid handle if nothing is selected.

◆ world_scale

f32 world_scale

The documentation for this struct was generated from the following file: