12template <
typename ... Components>
33template <typename Pipeline, if_not_t< is_enum<Pipeline>::value >>
38inline void world::set_pipeline(
const flecs::entity pip)
const {
42template <
typename Pipeline>
43inline void world::set_pipeline()
const {
51inline bool world::progress(
ecs_ftime_t delta_time)
const {
55inline void world::run_pipeline(
const flecs::entity_t pip,
ecs_ftime_t delta_time)
const {
59template <typename Pipeline, if_not_t< is_enum<Pipeline>::value >>
60inline void world::run_pipeline(
ecs_ftime_t delta_time)
const {
61 return ecs_run_pipeline(m_world, _::cpp_type<Pipeline>::id(m_world), delta_time);
64inline void world::set_time_scale(
ecs_ftime_t mul)
const {
68inline void world::set_target_fps(
ecs_ftime_t target_fps)
const {
72inline void world::reset_clock()
const {
76inline void world::set_threads(int32_t threads)
const {
80inline int32_t world::get_threads()
const {
84inline void world::set_task_threads(int32_t task_threads)
const {
88inline bool world::using_task_threads()
const {
#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.
flecs::pipeline_builder pipeline() const
Create a new pipeline.
#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.
ecs_term_t * terms_buffer
For filters with lots of terms an outside array can be provided.
ecs_filter_desc_t filter
Filter for the query.