2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 13:47:43 +00:00

All MP1 element decls in

This commit is contained in:
Jack Andersen
2016-02-04 22:34:14 -10:00
parent e060746b14
commit 8b02f897e6
12 changed files with 824 additions and 8 deletions

View File

@@ -1,11 +1,36 @@
#ifndef __RETRO_CUVELEMENT_HPP__
#define __RETRO_CUVELEMENT_HPP__
#include "IElement.hpp"
namespace Retro
{
class CToken;
class CUVElement
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;
};
}