2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-14 11:11:21 +00:00
metaforce/Runtime/Particle/CUVElement.hpp
2016-02-04 22:34:14 -10:00

39 lines
722 B
C++

#ifndef __RETRO_CUVELEMENT_HPP__
#define __RETRO_CUVELEMENT_HPP__
#include "IElement.hpp"
namespace Retro
{
class CToken;
struct SUVElementSet
{
float xMin, yMin, xMax, yMax;
};
class CUVElement : public IElement
{
public:
virtual CToken GetValueTexture(int frame) const=0;
virtual void GetValueUV(int frame, SUVElementSet& valOut) const=0;
};
struct CUVEConstant : public CUVElement
{
public:
CToken GetValueTexture(int frame) const;
void GetValueUV(int frame, SUVElementSet& valOut) const;
};
struct CUVEAnimTexture : public CUVElement
{
public:
CToken GetValueTexture(int frame) const;
void GetValueUV(int frame, SUVElementSet& valOut) const;
};
}
#endif // __RETRO_CUVELEMENT_HPP__