Function set_context

Synopsis

#include <include/flecs/addons/cpp/world.hpp>

void set_context(void *ctx) const

Description

Set world context. Set a context value that can be accessed by anyone that has a reference to the world.

Parameters

ctx - The world context.

Source

Lines 436-438 in include/flecs/addons/cpp/world.hpp.

void set_context(void* ctx) const {
    ecs_set_context(m_world, ctx);
}