12template <
typename ... Components>
29template <typename Pipeline, if_not_t< is_enum<Pipeline>::value >>
38template <
typename Pipeline>
55template <typename Pipeline, if_not_t< is_enum<Pipeline>::value >>
#define ecs_abort(error_code,...)
Abort.
FLECS_API void ecs_set_threads(ecs_world_t *world, int32_t threads)
Set number of worker threads.
FLECS_API void ecs_set_time_scale(ecs_world_t *world, ecs_ftime_t scale)
Set time scale.
FLECS_API void ecs_set_pipeline(ecs_world_t *world, ecs_entity_t pipeline)
Set a custom pipeline.
FLECS_API ecs_entity_t ecs_get_pipeline(const ecs_world_t *world)
Get the current pipeline.
FLECS_API bool ecs_progress(ecs_world_t *world, ecs_ftime_t delta_time)
Progress a world.
FLECS_API void ecs_reset_clock(ecs_world_t *world)
Reset world clock.
FLECS_API void ecs_run_pipeline(ecs_world_t *world, ecs_entity_t pipeline, ecs_ftime_t delta_time)
Run pipeline.
FLECS_API bool ecs_using_task_threads(ecs_world_t *world)
Returns true if task thread use have been requested.
FLECS_API void ecs_set_task_threads(ecs_world_t *world, int32_t task_threads)
Set number of worker task threads.
FLECS_API ecs_entity_t ecs_pipeline_init(ecs_world_t *world, const ecs_pipeline_desc_t *desc)
Create a custom pipeline.
int32_t ecs_get_stage_count(const ecs_world_t *world)
Get number of configured stages.
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.
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.
bool progress(ecs_ftime_t delta_time=0.0) const
Progress world one tick.
bool using_task_threads() const
Returns true if task thread use has been requested.
#define ecs_ftime_t
Customizable precision for scalar time values.
void ecs_set_target_fps(ecs_world_t *world, float fps)
Set target frames per second (FPS) for application.
Pipeline descriptor, used with ecs_pipeline_init().
ecs_ftime_t delta_time() const
Get delta_time.