Skip to content
Flecs
v4.1
Search
Ctrl K
Macros
ID API
C API
»
Macro API
»
Type-Safe API
Macros
#define
ecs_count
(world, type)
Count entities with a component.
Detailed Description
Macro Definition Documentation
◆
ecs_count
#define ecs_count
(
world
,
type
)
Value:
ecs_count_id
(world,
ecs_id
(type))
ecs_id
FLECS_API const ecs_entity_t ecs_id(EcsDocDescription)
Component ID for EcsDocDescription.
ecs_count_id
int32_t ecs_count_id(const ecs_world_t *world, ecs_id_t entity)
Count entities that have the specified ID.
Count entities with a component.
Definition at line
709
of file
flecs_c.h
.
Esc
↑
↓
to navigate
↵
to open
Esc
to close