mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-29 05:17:58 +03:00
MR feedack
This commit is contained in:
parent
a7bb87d8a1
commit
67879bac55
6 changed files with 30 additions and 35 deletions
|
@ -22,18 +22,8 @@ namespace LuaUi
|
|||
osg::Vec2f mSize;
|
||||
};
|
||||
|
||||
class TextureResource
|
||||
{
|
||||
public:
|
||||
TextureResource(TextureData data)
|
||||
: mData(data)
|
||||
{}
|
||||
|
||||
const TextureData& data() { return mData; }
|
||||
|
||||
private:
|
||||
TextureData mData;
|
||||
};
|
||||
// will have more/different data when automated atlasing is supported
|
||||
using TextureResource = TextureData;
|
||||
|
||||
class ResourceManager
|
||||
{
|
||||
|
@ -43,10 +33,9 @@ namespace LuaUi
|
|||
{}
|
||||
|
||||
std::shared_ptr<TextureResource> registerTexture(TextureData data);
|
||||
void clear();
|
||||
|
||||
private:
|
||||
const VFS::Manager* vfs() const { return mVfs; }
|
||||
|
||||
const VFS::Manager* mVfs;
|
||||
using TextureResources = std::vector<std::shared_ptr<TextureResource>>;
|
||||
std::unordered_map<std::string, TextureResources> mTextures;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue