|
ShishGL
1.0
A simple modular cross-platform graphics library
|
|
Go to the documentation of this file.
2 #ifndef SHISHGL_RESOURCE_MANAGER_HPP
3 #define SHISHGL_RESOURCE_MANAGER_HPP
7 #include <unordered_map>
22 static void load(
const std::string_view& filename);
24 static const Resource&
get(
const std::string_view& filename);
26 static void forget(
const std::string_view& filename);
32 using ResourceMap = std::unordered_map<std::string_view, Resource>;
34 static ResourceMap& Resources();
39 #endif //SHISHGL_RESOURCE_MANAGER_HPP
static void clear()
Definition: ResourceManager.cpp:79
static const Resource & get(const std::string_view &filename)
Definition: ResourceManager.cpp:61
static void load(const std::string_view &filename)
Definition: ResourceManager.cpp:21
Definition: CoreApplication.hpp:10
uint8_t * data
Definition: ResourceManager.hpp:17
static void forget(const std::string_view &filename)
Definition: ResourceManager.cpp:72
Definition: ResourceManager.hpp:14
Definition: ResourceManager.hpp:11
size_t size
Definition: ResourceManager.hpp:16
std::string_view filename
Definition: ResourceManager.hpp:15