metaforce/Runtime/Particle/IElement.hpp

60 lines
1.1 KiB
C++
Raw Normal View History

2016-04-13 06:07:23 +00:00
#ifndef __URDE_IELEMENT_HPP__
#define __URDE_IELEMENT_HPP__
2016-02-05 08:34:14 +00:00
#include <memory>
#include "GCNTypes.hpp"
2016-03-04 23:04:53 +00:00
#include "zeus/CVector3f.hpp"
#include "zeus/CColor.hpp"
2016-02-05 08:34:14 +00:00
#include "IOStreams.hpp"
2016-03-04 23:04:53 +00:00
namespace urde
2016-02-05 08:34:14 +00:00
{
class IElement
{
public:
virtual ~IElement() = default;
};
class CRealElement : public IElement
{
public:
virtual bool GetValue(int frame, float& valOut) const=0;
virtual bool IsConstant() const {return false;}
};
class CIntElement : public IElement
{
public:
virtual bool GetValue(int frame, int& valOut) const=0;
};
class CVectorElement : public IElement
{
public:
2016-03-04 23:04:53 +00:00
virtual bool GetValue(int frame, zeus::CVector3f& valOut) const=0;
2016-02-05 08:34:14 +00:00
virtual bool IsFastConstant() const {return false;}
};
class CModVectorElement : public IElement
{
public:
2016-03-04 23:04:53 +00:00
virtual bool GetValue(int frame, zeus::CVector3f& pVel, zeus::CVector3f& pPos) const=0;
2016-02-05 08:34:14 +00:00
};
class CColorElement : public IElement
{
public:
2016-03-04 23:04:53 +00:00
virtual bool GetValue(int frame, zeus::CColor& colorOut) const=0;
2016-02-05 08:34:14 +00:00
};
class CEmitterElement : public IElement
{
2016-02-11 02:36:21 +00:00
public:
2016-03-04 23:04:53 +00:00
virtual bool GetValue(int frame, zeus::CVector3f& pPos, zeus::CVector3f& pVel) const=0;
};
2016-02-05 08:34:14 +00:00
}
2016-04-13 06:07:23 +00:00
#endif // __URDE_IELEMENT_HPP__