24class SDLResourceManager
26 friend class SDLResourceFile;
29 SDLResourceManager() =
delete;
30 SDLResourceManager(
const SDLResourceManager& other) =
delete;
31 SDLResourceManager(
const SDLResourceManager&& other) =
delete;
32 ~SDLResourceManager() =
delete;
33 SDLResourceManager operator=(
const SDLResourceManager& other) =
delete;
34 SDLResourceManager& operator=(SDLResourceManager&& other) =
delete;
36 [[nodiscard]]
static std::string
typeFonts();
37 [[nodiscard]]
static std::string typeImages();
40 static void insert(
const std::string& type,
const std::string&
id,
41 const std::vector<unsigned char>& data);
43 [[nodiscard]]
static const std::vector<unsigned char>* data(
const std::string& type,
44 const std::string&
id);
45 [[nodiscard]]
static std::string filename(
const std::string& type,
const std::string&
id);
47 [[nodiscard]]
static bool useCompiledResources();
50 [[nodiscard]]
static std::map<std::string, std::vector<unsigned char>>& resources();
51#if defined(SDL_USE_COMPILED_RESOURCES)