metaforce/Runtime/World/CScriptShadowProjector.hpp

37 lines
1.1 KiB
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
#include "World/CActor.hpp"
2018-12-08 05:30:43 +00:00
namespace urde {
class CProjectedShadow;
2018-12-08 05:30:43 +00:00
class CScriptShadowProjector : public CActor {
float xe8_scale;
zeus::CVector3f xec_offset;
float xf8_zOffsetAdjust;
float xfc_opacity;
float x100_opacityRecip;
TUniqueId x104_target;
std::unique_ptr<CProjectedShadow> x108_projectedShadow;
u32 x10c_textureSize;
2018-12-08 05:30:43 +00:00
union {
struct {
bool x110_24_persistent : 1;
bool x110_25_shadowInvalidated : 1;
};
2018-12-08 05:30:43 +00:00
u8 x110_dummy = 0;
};
public:
2018-12-08 05:30:43 +00:00
CScriptShadowProjector(TUniqueId, std::string_view, const CEntityInfo&, const zeus::CTransform&, bool,
const zeus::CVector3f&, bool, float, float, float, float, s32);
void Accept(IVisitor& visitor) override;
void Think(float, CStateManager&) override;
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&) override;
void PreRender(CStateManager&, const zeus::CFrustum&) override;
void AddToRenderer(const zeus::CFrustum&, const CStateManager&) const override {}
2018-12-08 05:30:43 +00:00
void CreateProjectedShadow();
};
2018-12-08 05:30:43 +00:00
} // namespace urde