2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-04-02 03:03:37 +00:00
|
|
|
|
2017-04-07 05:35:09 +00:00
|
|
|
#include "CToken.hpp"
|
|
|
|
#include "Graphics/CTexture.hpp"
|
|
|
|
#include "Graphics/Shaders/CRadarPaintShader.hpp"
|
|
|
|
|
2017-04-02 03:03:37 +00:00
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
class CGuiFrame;
|
2017-04-07 05:35:09 +00:00
|
|
|
class CGuiWidget;
|
|
|
|
class CGuiCamera;
|
2017-04-02 03:03:37 +00:00
|
|
|
class CStateManager;
|
|
|
|
|
|
|
|
class CHudRadarInterface
|
|
|
|
{
|
2017-04-07 05:35:09 +00:00
|
|
|
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;
|
2017-04-02 03:03:37 +00:00
|
|
|
public:
|
2017-04-07 05:35:09 +00:00
|
|
|
CHudRadarInterface(CGuiFrame& baseHud, CStateManager& stateMgr);
|
|
|
|
void SetIsVisibleGame(bool v);
|
2017-04-03 01:39:23 +00:00
|
|
|
void Update(float dt, const CStateManager& mgr);
|
2017-04-07 05:35:09 +00:00
|
|
|
void Draw(const CStateManager& mgr, float alpha) const;
|
2017-04-02 03:03:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|