prime/include/MetroidPrime/ScriptObjects/CHUDBillboardEffect.hpp

48 lines
1.7 KiB
C++

#ifndef _CHUDBILLBOARDEFFECT
#define _CHUDBILLBOARDEFFECT
#include "MetroidPrime/CEffect.hpp"
class CGenDescription ;
class CElectricDescription;
class CParticleGen;
class CHUDBillboardEffect : public CEffect {
public:
CHUDBillboardEffect(const rstl::optional_object< TToken< CGenDescription > >& particle,
const rstl::optional_object< TToken< CElectricDescription > >& electric,
TUniqueId uid, bool active, const rstl::string& name, float dist,
const CVector3f& scale0, const CColor& color, const CVector3f& scale1,
const CVector3f& translation);
~CHUDBillboardEffect();
void Accept(IVisitor& visitor);
void Think(float dt, CStateManager& mgr);
void PreRender(CStateManager& mgr, const CFrustumPlanes& frustum);
void AddToRenderer(const CFrustumPlanes& frustum, const CStateManager& mgr) const;
void Render(const CStateManager& mgr) const;
bool IsElementGen() const { return x104_26_isElementGen; }
void SetRunIndefinitely(bool b) { x104_27_runIndefinitely = b; }
CParticleGen* GetParticleGen() const { return xe8_generator.get(); }
static float GetNearClipDistance(const CStateManager& mgr);
static const CVector3f& GetScaleForPOV(const CStateManager& mgr);
private:
rstl::single_ptr< CParticleGen > xe8_generator;
CVector3f xec_translation;
CVector3f xf8_localScale;
bool x104_24_renderAsParticleGen : 1l; // = true;
bool x104_25_enableRender : 1l; // = false;
bool x104_26_isElementGen : 1l; // = false;
bool x104_27_runIndefinitely : 1l; // = false;
float x108_timeoutTimer; // = 0.f;
static int g_IndirectTexturedBillboardCount;
static int g_BillboardCount;
static float CalcGenRate();
};
#endif // _CHUDBILLBOARDEFFECT