2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2017-01-03 20:08:30 -08:00
|
|
|
|
2019-09-23 12:00:23 -07:00
|
|
|
#include "Runtime/Graphics/CTexture.hpp"
|
|
|
|
|
|
|
|
#include <zeus/CAABox.hpp>
|
|
|
|
#include <zeus/CTransform.hpp>
|
|
|
|
#include <zeus/CVector3f.hpp>
|
2017-01-03 20:08:30 -08:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce {
|
2017-01-03 20:08:30 -08:00
|
|
|
class CStateManager;
|
|
|
|
class CModelData;
|
2018-12-07 21:30:43 -08:00
|
|
|
class CProjectedShadow {
|
|
|
|
CTexture x0_texture;
|
2019-02-23 23:15:54 -08:00
|
|
|
zeus::CAABox x68_ = zeus::CAABox();
|
2018-12-07 21:30:43 -08:00
|
|
|
bool x80_;
|
|
|
|
bool x81_persistent;
|
|
|
|
float x84_ = 1.f;
|
2019-02-23 23:15:54 -08:00
|
|
|
zeus::CVector3f x88_ = zeus::skZero3f;
|
2018-12-07 21:30:43 -08:00
|
|
|
float x94_zDistanceAdjust = 0.f;
|
|
|
|
float x98_ = 1.f;
|
2017-01-03 20:08:30 -08:00
|
|
|
|
|
|
|
public:
|
2018-12-07 21:30:43 -08:00
|
|
|
CProjectedShadow(u32, u32, bool);
|
2017-01-03 20:08:30 -08:00
|
|
|
|
2018-12-07 21:30:43 -08:00
|
|
|
zeus::CAABox CalculateRenderBounds();
|
|
|
|
void Render(const CStateManager& mgr);
|
|
|
|
void RenderShadowBuffer(const CStateManager&, const CModelData&, const zeus::CTransform&, s32, const zeus::CVector3f&,
|
|
|
|
float, float);
|
2019-11-12 12:25:21 -08:00
|
|
|
|
|
|
|
void Unset_X80() { x80_ = false; }
|
2020-10-08 21:45:05 -07:00
|
|
|
void Set_x98(float f) { x98_ = f; }
|
2017-01-03 20:08:30 -08:00
|
|
|
};
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce
|