Function ecs_set_context

Synopsis

#include <include/flecs.h>

FLECS_API void ecs_set_context(ecs_world_t *world, void *ctx)

Description

Set a world context. This operation allows an application to register custom data with a world that can be accessed anywhere where the application has the world object.

Parameters

world - The world.

ctx - A pointer to a user defined structure.

Source

Line 1025 in include/flecs.h.