mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
f99ed6f1db
Replace all ciEqual overloads with one having std::string_view as argument.
21 lines
467 B
C++
21 lines
467 B
C++
#include "resources.hpp"
|
|
|
|
#include <components/vfs/manager.hpp>
|
|
|
|
namespace LuaUi
|
|
{
|
|
std::shared_ptr<TextureResource> ResourceManager::registerTexture(TextureData data)
|
|
{
|
|
data.mPath = mVfs->normalizeFilename(data.mPath);
|
|
|
|
TextureResources& list = mTextures[data.mPath];
|
|
list.push_back(std::make_shared<TextureResource>(data));
|
|
return list.back();
|
|
}
|
|
|
|
void ResourceManager::clear()
|
|
{
|
|
mTextures.clear();
|
|
}
|
|
}
|