Function ecs_init

Synopsis

#include <include/flecs.h>

FLECS_API ecs_world_t * ecs_init(void)

Description

Create a new world. A world manages all the ECS data and supporting infrastructure. Applications must have at least one world. Entities, component and system handles are local to a world and should not be shared between worlds.

This operation creates a world with all builtin modules loaded.

Returns
A new world object

Mentioned in

Source

Line 483 in include/flecs.h.