diff --git a/source/japi/draw.cpp b/source/japi/draw.cpp index 095c1f3..fcb7cb0 100644 --- a/source/japi/draw.cpp +++ b/source/japi/draw.cpp @@ -9,6 +9,7 @@ namespace draw SDL_Renderer *sdl_renderer {nullptr}; // El renderer de SDL SDL_Texture *sdl_texture {nullptr}; // La textura a la que ho renderitze tot SDL_Texture *sdl_source {nullptr}; + SDL_FRect window_rect {0,0,0,0}; void init(const char *titol, const uint16_t width, const uint16_t height) { @@ -18,20 +19,29 @@ namespace draw exit(1); } - sdl_renderer = SDL_CreateRenderer(sdl_window, NULL); + printf("AVAILABLE RENDER DRIVERS:\n"); + for (int i=0; i room_names; for (const auto& entry : fs::directory_iterator("./data/room")) { if (entry.is_regular_file() && entry.path().extension() == ".yaml") { - room_names.emplace_back(entry.path().stem()); + room_names.emplace_back(entry.path().stem().string()); } } std::sort(room_names.begin(), room_names.end(), [](const fs::path& a, const fs::path& b) {