This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A component is a plain old datatype | |
typedef struct Position { | |
float x; | |
float y; | |
} Position; | |
// An entity can have 0 .. N components | |
typedef struct Archetype1 { | |
int count; | |
Position position[1024]; |