Skip to main content

Module renderers

Module renderers 

Source
Expand description

Per-shape leaf renderers + numeric helpers.

Renderers are pure functions matched by JSON shape. The walker (in widgets::inspector::walker) iterates the shape detectors (is_*) in order and dispatches to the matching renderer. Adding a new shape = adding a match_shape predicate and a render_* function and wiring them in walker::render_object.

Functions§

f32_to_json
humanise
snake_case"Snake Case" — keeps the inspector readable without the engine having to ship a separate display-name table.
is_color
is_quat
is_vec3
json_to_f32
render_color
render_number_row
render_numeric_quad
render_numeric_triple
render_quat
render_vec3