prime/include/Kyoto/Particles/CUVElement.hpp

45 lines
1.3 KiB
C++

#ifndef _CUVELEMENT
#define _CUVELEMENT
#include "types.h"
#include "Kyoto/Particles/IElement.hpp"
#include "Kyoto/TToken.hpp"
class CTexture;
class CUVEConstant : public CUVElement {
TLockedToken< CTexture > x4_tex;
public:
CUVEConstant(TToken< CTexture > tex);
~CUVEConstant() override;
TLockedToken< CTexture > GetValueTexture(int frame) const override;
void GetValueUV(int frame, SUVElementSet& valOut) const override;
bool HasConstantTexture() const override { return true; }
bool HasConstantUV() const override { return true; }
};
class CUVEAnimTexture : public CUVElement {
TLockedToken< CTexture > x4_tex;
int x10_tileW;
int x14_tileH;
int x18_strideW;
int x1c_strideH;
int x20_tiles;
bool x24_loop;
CIntElement* x28_cycleFrames;
rstl::vector< SUVElementSet > x2c_uvElems;
public:
CUVEAnimTexture(TToken< CTexture > tex, CIntElement* tileW, CIntElement* tileH,
CIntElement* strideW, CIntElement* strideH, CIntElement* cycleFrames, bool loop);
~CUVEAnimTexture() override;
TLockedToken< CTexture > GetValueTexture(int frame) const override;
void GetValueUV(int frame, SUVElementSet& valOut) const override;
bool HasConstantTexture() const override { return true; }
bool HasConstantUV() const override { return false; }
};
#endif // _CUVELEMENT