Flecs v4.1
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)   ecs_new_w_id(world, ecs_id(T))
 Create a new entity with a component.
 
#define ecs_new_w_pair(world, first, second)    ecs_new_w_id(world, ecs_pair(first, second))
 Create a new entity with a pair.
 
#define ecs_bulk_new(world, component, count)    ecs_bulk_new_w_id(world, ecs_id(component), count)
 Bulk create entities with a component.
 

Detailed Description

Macro Definition Documentation

◆ ecs_bulk_new

#define ecs_bulk_new ( world,
component,
count )    ecs_bulk_new_w_id(world, ecs_id(component), count)

Bulk create entities with a component.

Definition at line 307 of file flecs_c.h.

◆ ecs_new_w

#define ecs_new_w ( world,
T )   ecs_new_w_id(world, ecs_id(T))

Create a new entity with a component.

Definition at line 300 of file flecs_c.h.

◆ ecs_new_w_pair

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

Create a new entity with a pair.

Definition at line 303 of file flecs_c.h.