18 #include "sdl2_resource_manager.hpp"
23 if (useCompiledResources())
25 auto d = data(type,
id);
32 return SDL_RWFromConstMem(d->data(),
static_cast<int>(s));
35 auto name = filename(type,
id);
36 return SDL_RWFromFile(name.c_str(),
"rb");
static SDL_RWops * get(const std::string &type, const std::string &id)