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

Macros

#define ecs_field(it, T, index)    (ECS_CAST(T*, ecs_field_w_size(it, sizeof(T), index)))
 
#define ecs_field_self(it, T, index)    (ECS_CAST(T*, ecs_field_self_w_size(it, sizeof(T), index)))
 
#define ecs_field_at(it, T, index, row)    (ECS_CAST(T*, ecs_field_at_w_size(it, sizeof(T), index, row)))
 

Detailed Description

Macro Definition Documentation

◆ ecs_field

#define ecs_field ( it,
T,
index )    (ECS_CAST(T*, ecs_field_w_size(it, sizeof(T), index)))

Definition at line 687 of file flecs_c.h.

◆ ecs_field_at

#define ecs_field_at ( it,
T,
index,
row )    (ECS_CAST(T*, ecs_field_at_w_size(it, sizeof(T), index, row)))

Definition at line 693 of file flecs_c.h.

◆ ecs_field_self

#define ecs_field_self ( it,
T,
index )    (ECS_CAST(T*, ecs_field_self_w_size(it, sizeof(T), index)))

Definition at line 690 of file flecs_c.h.