Flecs v4.1
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
Enabling & Disabling
Collaboration diagram for Enabling & Disabling:

Macros

#define ecs_enable_component(world, entity, T, enable)    ecs_enable_id(world, entity, ecs_id(T), enable)
 Enable or disable a component.
 
#define ecs_is_enabled(world, entity, T)    ecs_is_enabled_id(world, entity, ecs_id(T))
 Test if a component is enabled.
 
#define ecs_enable_pair(world, entity, First, second, enable)    ecs_enable_id(world, entity, ecs_pair(ecs_id(First), second), enable)
 Enable or disable a pair.
 
#define ecs_is_enabled_pair(world, entity, First, second)    ecs_is_enabled_id(world, entity, ecs_pair(ecs_id(First), second))
 Test if a pair is enabled.
 

Detailed Description

Macro Definition Documentation

◆ ecs_enable_component

#define ecs_enable_component ( world,
entity,
T,
enable )    ecs_enable_id(world, entity, ecs_id(T), enable)

Enable or disable a component.

Definition at line 570 of file flecs_c.h.

◆ ecs_enable_pair

#define ecs_enable_pair ( world,
entity,
First,
second,
enable )    ecs_enable_id(world, entity, ecs_pair(ecs_id(First), second), enable)

Enable or disable a pair.

Definition at line 578 of file flecs_c.h.

◆ ecs_is_enabled

#define ecs_is_enabled ( world,
entity,
T )    ecs_is_enabled_id(world, entity, ecs_id(T))

Test if a component is enabled.

Definition at line 574 of file flecs_c.h.

◆ ecs_is_enabled_pair

#define ecs_is_enabled_pair ( world,
entity,
First,
second )    ecs_is_enabled_id(world, entity, ecs_pair(ecs_id(First), second))

Test if a pair is enabled.

Definition at line 582 of file flecs_c.h.