Flecs v4.0
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
Creation & Deletion
Collaboration diagram for Creation & Deletion:

Macros

#define ecs_new_w(world, T)
 
#define ecs_new_w_pair(world, first, second)
 
#define ecs_bulk_new(world, component, count)
 

Detailed Description

Macro Definition Documentation

◆ ecs_bulk_new

#define ecs_bulk_new ( world,
component,
count )
Value:
ecs_bulk_new_w_id(world, ecs_id(component), count)
FLECS_API const ecs_entity_t ecs_id(EcsDocDescription)
Component id for EcsDocDescription.
const ecs_entity_t * ecs_bulk_new_w_id(ecs_world_t *world, ecs_id_t id, int32_t count)
Create N new entities.

Definition at line 320 of file flecs_c.h.

◆ ecs_new_w

#define ecs_new_w ( world,
T )
Value:
ecs_new_w_id(world, ecs_id(T))
ecs_entity_t ecs_new_w_id(ecs_world_t *world, ecs_id_t id)
Create new entity with (component) id.

Definition at line 315 of file flecs_c.h.

◆ ecs_new_w_pair

#define ecs_new_w_pair ( world,
first,
second )
Value:
ecs_new_w_id(world, ecs_pair(first, second))

Definition at line 317 of file flecs_c.h.