Flecs v4.0
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
Collaboration diagram for Table API:

Macros

#define ecs_table_get(world, table, T, offset)    (ECS_CAST(T*, ecs_table_get_id(world, table, ecs_id(T), offset)))
 
#define ecs_table_get_pair(world, table, First, second, offset)    (ECS_CAST(First*, ecs_table_get_id(world, table, ecs_pair(ecs_id(First), second), offset)))
 
#define ecs_table_get_pair_second(world, table, first, Second, offset)    (ECS_CAST(Second*, ecs_table_get_id(world, table, ecs_pair(first, ecs_id(Second)), offset)))
 

Detailed Description

Macro Definition Documentation

◆ ecs_table_get

#define ecs_table_get ( world,
table,
T,
offset )    (ECS_CAST(T*, ecs_table_get_id(world, table, ecs_id(T), offset)))

Definition at line 703 of file flecs_c.h.

◆ ecs_table_get_pair

#define ecs_table_get_pair ( world,
table,
First,
second,
offset )    (ECS_CAST(First*, ecs_table_get_id(world, table, ecs_pair(ecs_id(First), second), offset)))

Definition at line 706 of file flecs_c.h.

◆ ecs_table_get_pair_second

#define ecs_table_get_pair_second ( world,
table,
first,
Second,
offset )    (ECS_CAST(Second*, ecs_table_get_id(world, table, ecs_pair(first, ecs_id(Second)), offset)))

Definition at line 709 of file flecs_c.h.