2017-07-16 06:13:37 +00:00
|
|
|
#ifndef __URDE_CHUDBILLBOARDEFFECT_HPP__
|
|
|
|
#define __URDE_CHUDBILLBOARDEFFECT_HPP__
|
|
|
|
|
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
#include "World/CEffect.hpp"
|
|
|
|
#include "CToken.hpp"
|
|
|
|
#include "Particle/CElementGen.hpp"
|
|
|
|
#include "Particle/CParticleElectric.hpp"
|
|
|
|
#include "Particle/CParticleSwoosh.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
class CGenDescription;
|
|
|
|
class CElectricDescription;
|
|
|
|
|
|
|
|
class CHUDBillboardEffect : public CEffect
|
|
|
|
{
|
|
|
|
std::unique_ptr<CParticleGen> xe8_generator;
|
|
|
|
zeus::CVector3f xec_v2;
|
|
|
|
zeus::CVector3f xf8_;
|
|
|
|
bool x104_24_ : 1;
|
|
|
|
bool x104_25_ : 1;
|
|
|
|
bool x104_26_ : 1;
|
|
|
|
bool x104_27_ : 1;
|
|
|
|
float x108_ = 0.f;
|
|
|
|
static u32 g_IndirectTexturedBillboardCount;
|
|
|
|
static u32 g_BillboardCount;
|
|
|
|
public:
|
|
|
|
CHUDBillboardEffect(const std::experimental::optional<TToken<CGenDescription>>& particle,
|
|
|
|
const std::experimental::optional<TToken<CElectricDescription>>& electric,
|
2017-11-13 06:19:18 +00:00
|
|
|
TUniqueId uid, bool active, std::string_view name, float, const zeus::CVector3f& v0,
|
2017-07-16 06:13:37 +00:00
|
|
|
const zeus::CColor& color, const zeus::CVector3f& v1, const zeus::CVector3f& v2);
|
|
|
|
~CHUDBillboardEffect();
|
|
|
|
void Accept(IVisitor& visitor);
|
|
|
|
|
|
|
|
static float GetNearClipDistance(CStateManager& mgr);
|
|
|
|
static zeus::CVector3f GetScaleForPOV(CStateManager& mgr);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CHUDBILLBOARDEFFECT_HPP__
|