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_INVALID_PARAMETER
Invalid parameter error code.
#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)
Return true if task thread use has 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 the number of configured stages.
ecs_entity_t entity_t
Entity type.
ecs_world_t world_t
World type.
void set_target_fps(ecs_ftime_t target_fps) const
Set the target FPS.
flecs::pipeline_builder pipeline() const
Create a new pipeline.
flecs::entity get_pipeline() const
Get the pipeline.
void run_pipeline(const flecs::entity_t pip, ecs_ftime_t delta_time=0.0) const
Run a pipeline.
void reset_clock() const
Reset the simulation clock.
void set_threads(int32_t threads) const
Set the number of threads.
void set_pipeline() const
Set the pipeline.
int32_t get_threads() const
Get the number of threads.
void set_time_scale(ecs_ftime_t mul) const
Set the time scale.
void set_task_threads(int32_t task_threads) const
Set the number of task threads.
bool progress(ecs_ftime_t delta_time=0.0) const
Progress the world one tick.
bool using_task_threads() const
Return 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 an application.
Pipeline descriptor, used with ecs_pipeline_init().
entity()
Default constructor.
flecs::id_t id_
The raw ID value.
Forward declaration for pipeline.
world_t * world_
Pointer to the underlying C world.
ecs_ftime_t delta_time() const
Get delta_time.