mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 14:27:42 +00:00
New code style refactor
This commit is contained in:
@@ -4,44 +4,41 @@
|
||||
#include "Graphics/CTexture.hpp"
|
||||
#include "Graphics/Shaders/CRadarPaintShader.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
namespace urde {
|
||||
class CGuiFrame;
|
||||
class CGuiWidget;
|
||||
class CGuiCamera;
|
||||
class CStateManager;
|
||||
|
||||
class CHudRadarInterface
|
||||
{
|
||||
struct SRadarPaintDrawParms
|
||||
{
|
||||
zeus::CVector3f x0_playerPos;
|
||||
zeus::CTransform xc_preTranslate;
|
||||
zeus::CTransform x3c_postTranslate;
|
||||
float x6c_scopeRadius;
|
||||
float x70_scopeScalar;
|
||||
float x74_alpha;
|
||||
float x78_xyRadius;
|
||||
float x7c_zRadius;
|
||||
float x80_ZCloseRadius;
|
||||
};
|
||||
TLockedToken<CTexture> x0_txtrRadarPaint;
|
||||
zeus::CTransform xc_radarStuffXf;
|
||||
bool x3c_24_visibleGame : 1;
|
||||
bool x3c_25_visibleDebug : 1;
|
||||
CGuiWidget* x40_BaseWidget_RadarStuff;
|
||||
CGuiCamera* x44_camera;
|
||||
CRadarPaintShader m_paintShader;
|
||||
std::vector<CRadarPaintShader::Instance> m_paintInsts;
|
||||
void DoDrawRadarPaint(float radius, const zeus::CColor& color) const;
|
||||
void DrawRadarPaint(const zeus::CVector3f& enemyPos, float radius,
|
||||
float alpha, const SRadarPaintDrawParms& parms) const;
|
||||
class CHudRadarInterface {
|
||||
struct SRadarPaintDrawParms {
|
||||
zeus::CVector3f x0_playerPos;
|
||||
zeus::CTransform xc_preTranslate;
|
||||
zeus::CTransform x3c_postTranslate;
|
||||
float x6c_scopeRadius;
|
||||
float x70_scopeScalar;
|
||||
float x74_alpha;
|
||||
float x78_xyRadius;
|
||||
float x7c_zRadius;
|
||||
float x80_ZCloseRadius;
|
||||
};
|
||||
TLockedToken<CTexture> x0_txtrRadarPaint;
|
||||
zeus::CTransform xc_radarStuffXf;
|
||||
bool x3c_24_visibleGame : 1;
|
||||
bool x3c_25_visibleDebug : 1;
|
||||
CGuiWidget* x40_BaseWidget_RadarStuff;
|
||||
CGuiCamera* x44_camera;
|
||||
CRadarPaintShader m_paintShader;
|
||||
std::vector<CRadarPaintShader::Instance> m_paintInsts;
|
||||
void DoDrawRadarPaint(float radius, const zeus::CColor& color) const;
|
||||
void DrawRadarPaint(const zeus::CVector3f& enemyPos, float radius, float alpha,
|
||||
const SRadarPaintDrawParms& parms) const;
|
||||
|
||||
public:
|
||||
CHudRadarInterface(CGuiFrame& baseHud, CStateManager& stateMgr);
|
||||
void SetIsVisibleGame(bool v);
|
||||
void Update(float dt, const CStateManager& mgr);
|
||||
void Draw(const CStateManager& mgr, float alpha) const;
|
||||
CHudRadarInterface(CGuiFrame& baseHud, CStateManager& stateMgr);
|
||||
void SetIsVisibleGame(bool v);
|
||||
void Update(float dt, const CStateManager& mgr);
|
||||
void Draw(const CStateManager& mgr, float alpha) const;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
} // namespace urde
|
||||
|
||||
Reference in New Issue
Block a user