This commit is contained in:
2025-05-13 02:46:21 +03:00
parent 143e16692e
commit 86914b7fcc
610 changed files with 92343 additions and 2 deletions
+33
View File
@@ -0,0 +1,33 @@
#ifndef ITextureContainer_h__
#define ITextureContainer_h__
#include "render/ITexture2D.h"
#include <vector>
namespace LifeGraphics
{
class ITextureContainer
{
private:
void Reset()
{
currTex = frames[0];
}
std::vector<ITexture2D*> frames;
ITexture2D* currTex;
public:
ITextureContainer()
{
}
~ITextureContainer()
{
}
void AddFrame(ITexture2D* frame)
{
frames.push_back(frame);
Reset();
}
ITexture2D* operator->(){return currTex;}
};
}
#endif // ITextureContainer_h__