Engine → Scene → transform_system.h
transform_system
| Type | Class |
| Namespace | conjure::scene |
| Include File Path | engine/include/conjure/scene/transform_system.h |
| Source File Path | engine/src/scene/transform_system.cpp |
| API ↗ | Scenes, hierarchy and prefabs, Scenes and the hierarchy |
Syntax
Constructors
| Access | Signature | Description |
|---|---|---|
| public | explicit transform_system(
scene &target); |
Important
Copy constructor and assignment has been deleted.
Destructors
| Access | Signature | Description |
|---|---|---|
| public | ~transform_system(); |
Variables
| Access | Name | Type | Default | Description |
|---|---|---|---|---|
| private | mCounters | run_counters | {} | |
| private | m | bool | true | |
| private | mJobBounds | std::vector<u32> | {} | |
| private | mLevelChunks | std::vector<level_chunk> | {} | |
| private | m | std::vector<ecs::query> | {} | |
| private | mRootQuery | ecs::query | — | |
| private | mRunCounter | u32 | 0 | |
| private | mScene | scene * | nullptr | |
| private | mStats | propagation_stats | {} | |
| public | SYSTEM_NAME | static constexpr std:: | "scene.propagate_ | Registered system name. |
Functions
Public
describe
describe[[nodiscard]] ecs::system_desc describe();The system description: name, TRANSFORM phase, RUNS_WHILE_PAUSED, reads (local_transform, parent, children, interpolated_transform, transform_dirty) and writes (world_transform, render_world_transform, transform_state); run() bound to this instance. children is read to mark a recomputed row's children pending, so the scheduler keeps a children writer out of the pass's stage.
interpolation_enabled
interpolation_enabled[[nodiscard]] bool interpolation_enabled() const noexcept;Whether interpolated entities render the lerp of their poses (true by default).
last_stats
last_stats[[nodiscard]] const propagation_stats &last_stats() const noexcept;Counters of the last run.
run
runvoid run(
ecs::system_context &context);Runs the propagation pass (the body of scene.propagate_transforms).
set_interpolation_enabled
set_interpolation_enabledvoid set_interpolation_enabled(
bool enabled) noexcept;When disabled, interpolated entities render their current pose (alpha 1).
Private
collect_chunk
collect_chunkvoid collect_chunk(
ecs::chunk_view &chunk,
u64 since);mark_children_pending
mark_children_pendingvoid mark_children_pending(
const children &list);process_chunk
process_chunkvoid process_chunk(
const level_chunk &item,
u32 runId,
f32 alpha,
chunk_tally &tally);run_level
run_levelvoid run_level(
ecs::query &level,
ecs::system_context &context,
u32 runId,
u64 since,
f32 alpha);