2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-04-02 03:03:37 +00:00
|
|
|
|
2019-09-22 21:52:05 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "Runtime/CToken.hpp"
|
|
|
|
#include "Runtime/Graphics/CTexture.hpp"
|
|
|
|
#include "Runtime/Graphics/Shaders/CRadarPaintShader.hpp"
|
|
|
|
|
|
|
|
#include <zeus/CTransform.hpp>
|
|
|
|
#include <zeus/CVector3f.hpp>
|
2017-04-07 05:35:09 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2019-09-22 21:52:05 +00:00
|
|
|
class CGuiCamera;
|
2017-04-02 03:03:37 +00:00
|
|
|
class CGuiFrame;
|
2017-04-07 05:35:09 +00:00
|
|
|
class CGuiWidget;
|
2017-04-02 03:03:37 +00:00
|
|
|
class CStateManager;
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
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;
|
2020-04-20 04:57:50 +00:00
|
|
|
bool x3c_24_visibleGame : 1 = true;
|
|
|
|
bool x3c_25_visibleDebug : 1 = true;
|
2018-12-08 05:30:43 +00:00
|
|
|
CGuiWidget* x40_BaseWidget_RadarStuff;
|
|
|
|
CGuiCamera* x44_camera;
|
2020-04-10 01:23:47 +00:00
|
|
|
CRadarPaintShader m_paintShader;
|
|
|
|
std::vector<CRadarPaintShader::Instance> m_paintInsts;
|
|
|
|
void DoDrawRadarPaint(const zeus::CVector3f& translate, float radius, const zeus::CColor& color);
|
|
|
|
void DrawRadarPaint(const zeus::CVector3f& enemyPos, float radius, float alpha, const SRadarPaintDrawParms& parms);
|
2018-12-08 05:30:43 +00:00
|
|
|
|
2017-04-02 03:03:37 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CHudRadarInterface(CGuiFrame& baseHud, CStateManager& stateMgr);
|
|
|
|
void SetIsVisibleGame(bool v);
|
|
|
|
void Update(float dt, const CStateManager& mgr);
|
2020-04-10 01:23:47 +00:00
|
|
|
void Draw(const CStateManager& mgr, float alpha);
|
2017-04-02 03:03:37 +00:00
|
|
|
};
|
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|