Pipeline module

Structures

ecs_pipeline_desc_t

Mentioned in

Functions

ecs_get_pipelineGet the current pipeline
ecs_pipeline_initCreate a custom pipeline.
ecs_progressProgress a world
ecs_reset_clockReset world clock
ecs_run_pipelineRun pipeline
ecs_set_pipelineSet a custom pipeline
ecs_set_threadsSet number of worker threads
ecs_set_time_scaleSet time scale
FlecsPipelineImport

Defines

Defines (pipeline.h)

FLECS_SYSTEM

FLECS_OS_API_IMPL

FLECS_PIPELINE_H

ECS_PIPELINE_DEFINE(world,id_,...)
{
ecs_pipeline_desc_t desc = {0};
ecs_entity_desc_t edesc = {0};
edesc.id = id_;
edesc.name = #id_;
desc.entity = ecs_entity_init(world, &edesc);
desc.query.filter.expr = #__VA_ARGS__;
id_ = ecs_pipeline_init(world, &desc);
ecs_id(id_) = id_;
}
ecs_assert(id_ != 0, ECS_INVALID_PARAMETER, NULL);

ECS_PIPELINE(world,id,...)
ecs_entity_t id = 0, ecs_id(id) = 0; ECS_PIPELINE_DEFINE(world, id, __VA_ARGS__);
(void)id;
(void)ecs_id(id);

ecs_pipeline(world,...)
ecs_pipeline_init(world, &(ecs_pipeline_desc_t) __VA_ARGS__ )