Use built-in qsort instead of flecs (better perf)
This commit is contained in:
@@ -10,6 +10,14 @@ typedef enum GameScreen {
|
||||
SCREEN_SETTINGS,
|
||||
} GameScreen;
|
||||
|
||||
typedef struct DrawData {
|
||||
Texture tex;
|
||||
Rectangle src;
|
||||
Rectangle dst;
|
||||
Vector2 origin;
|
||||
f32 rotation;
|
||||
} DrawData;
|
||||
|
||||
typedef struct Game {
|
||||
GameScreen screen;
|
||||
Camera2D camera;
|
||||
@@ -41,6 +49,7 @@ typedef struct Game {
|
||||
f32 elapsed;
|
||||
|
||||
ecs_query_t *drawQuery;
|
||||
DrawData *drawData;
|
||||
} Game;
|
||||
|
||||
extern ecs_world_t *ECS;
|
||||
|
||||
Reference in New Issue
Block a user