Flecs v4.0
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
mixin.inl
Go to the documentation of this file.
1
18
24template <typename Pipeline, if_not_t< is_enum<Pipeline>::value > = 0>
26
30void set_pipeline(const flecs::entity pip) const;
31
35template <typename Pipeline>
36void set_pipeline() const;
37
42
46bool progress(ecs_ftime_t delta_time = 0.0) const;
47
51void run_pipeline(const flecs::entity_t pip, ecs_ftime_t delta_time = 0.0) const;
52
57template <typename Pipeline, if_not_t< is_enum<Pipeline>::value > = 0>
58void run_pipeline(ecs_ftime_t delta_time = 0.0) const;
59
64
68void set_target_fps(ecs_ftime_t target_fps) const;
69
73void reset_clock() const;
74
78void set_threads(int32_t threads) const;
79
83int32_t get_threads() const;
84
88void set_task_threads(int32_t task_threads) const;
89
93bool using_task_threads() const;
94
void set_target_fps(ecs_ftime_t target_fps) const
Set target FPS.
flecs::pipeline_builder pipeline() const
Create a new pipeline.
flecs::entity get_pipeline() const
Get pipeline.
void run_pipeline(const flecs::entity_t pip, ecs_ftime_t delta_time=0.0) const
Run pipeline.
void reset_clock() const
Reset simulation clock.
void set_threads(int32_t threads) const
Set number of threads.
void set_pipeline() const
Set pipeline.
flecs::pipeline_builder pipeline() const
Create a new pipeline.
int32_t get_threads() const
Set number of threads.
void set_time_scale(ecs_ftime_t mul) const
Set timescale.
void set_task_threads(int32_t task_threads) const
Set number of task threads.
void run_pipeline(ecs_ftime_t delta_time=0.0) const
Run pipeline.
bool progress(ecs_ftime_t delta_time=0.0) const
Progress world one tick.
void set_pipeline(const flecs::entity pip) const
Set pipeline.
bool using_task_threads() const
Returns true if task thread use has been requested.
#define ecs_ftime_t
Customizable precision for scalar time values.
Definition flecs.h:59
Entity.
Definition entity.hpp:30
Pipeline builder.
Definition builder.hpp:24