*
This commit is contained in:
@@ -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__
|
||||
Reference in New Issue
Block a user