Add flecs ECS

This commit is contained in:
2025-05-24 14:04:08 +02:00
parent 9228c9544a
commit d0f91fec37
3 changed files with 14 additions and 3 deletions

View File

@@ -1,10 +1,10 @@
#include <SDL3/SDL.h>
#include <SDL3/SDL_error.h>
#include <SDL3/SDL_render.h>
#include <flecs.h>
#include <spdlog/spdlog.h>
const uint8_t image_data[] =
{
const uint8_t image_data[] = {
#embed "main.cpp"
};
@@ -27,6 +27,8 @@ auto main() -> int {
SDL_GetError());
}
flecs::world world;
bool exit_gameloop = false;
while (!exit_gameloop) {
SDL_Event event;