Flecs: Creation & Deletion
Description: A fast entity component system (ECS) for C & C++

| Flecs v4.0 A fast entity component system (ECS) for C & C++

Loading...
Searching...
No Matches
Creation & Deletion
C API » Macro API » Type Safe API » Entity API
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)
ecs_id
FLECS_API const ecs_entity_t ecs_id(EcsDocDescription)
Component id for EcsDocDescription.
ecs_bulk_new_w_id
const ecs_entity_t * ecs_bulk_new_w_id(ecs_world_t *world, ecs_id_t component, int32_t count)
Create N new entities.

Definition at line 301 of file flecs_c.h.

## ◆ ecs_new_w

#define ecs_new_w | ( |  | world,
|  |  | T )

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

Definition at line 296 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 298 of file flecs_c.h.