diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-14 18:04:03 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-14 18:04:03 +0100 |
commit | ab0b4923c4f49e7a28f6d17e994d3e013ca344bb (patch) | |
tree | b385693017be292b8f4862e88b912dba7c6be619 /src/crepe/api/ResourceManager.cpp | |
parent | 213f947d0907858cace470736c15f87caa934591 (diff) |
more WIP audio system + utilities
Diffstat (limited to 'src/crepe/api/ResourceManager.cpp')
-rw-r--r-- | src/crepe/api/ResourceManager.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/crepe/api/ResourceManager.cpp b/src/crepe/api/ResourceManager.cpp index 17fbd9b..6eb4afd 100644 --- a/src/crepe/api/ResourceManager.cpp +++ b/src/crepe/api/ResourceManager.cpp @@ -2,6 +2,9 @@ #include "ResourceManager.h" +// default resource cache functions +#include "../facade/Sound.h" + using namespace crepe; ResourceManager & ResourceManager::get_instance() { @@ -11,3 +14,13 @@ ResourceManager & ResourceManager::get_instance() { ResourceManager::~ResourceManager() { dbg_trace(); } ResourceManager::ResourceManager() { dbg_trace(); } + +void ResourceManager::clear() { + this->resources.clear(); +} + +template <> +Sound & ResourceManager::cache<Sound>(const Asset & asset) { + return this->cache<Sound>(asset); +} + |