summaryrefslogtreecommitdiffstats
path: root/src/Radar.h
diff options
context:
space:
mode:
author_AG <gennariarmando@outlook.com>2019-06-20 11:20:52 +0200
committer_AG <gennariarmando@outlook.com>2019-06-20 11:21:27 +0200
commitef8e9e7f1b611f5565b9c9ba3e78162849c53d32 (patch)
tree5b9762c85badc7f46ceb2af9a93bc05cb7f4853b /src/Radar.h
parentUpdate CRadar.cpp, CHud.cpp, CDraw.cpp fixed bug in templates.h. (diff)
downloadre3-ef8e9e7f1b611f5565b9c9ba3e78162849c53d32.tar
re3-ef8e9e7f1b611f5565b9c9ba3e78162849c53d32.tar.gz
re3-ef8e9e7f1b611f5565b9c9ba3e78162849c53d32.tar.bz2
re3-ef8e9e7f1b611f5565b9c9ba3e78162849c53d32.tar.lz
re3-ef8e9e7f1b611f5565b9c9ba3e78162849c53d32.tar.xz
re3-ef8e9e7f1b611f5565b9c9ba3e78162849c53d32.tar.zst
re3-ef8e9e7f1b611f5565b9c9ba3e78162849c53d32.zip
Diffstat (limited to 'src/Radar.h')
-rw-r--r--src/Radar.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Radar.h b/src/Radar.h
index 57d21577..b71618f1 100644
--- a/src/Radar.h
+++ b/src/Radar.h
@@ -66,6 +66,9 @@ static_assert(sizeof(CBlip) == 0x30, "CBlip: error");
class CRadar
{
+ static float cachedSin;
+ static float cachedCos;
+
public:
static float &m_RadarRange;
static CVector2D &vec2DRadarOrigin;
@@ -98,15 +101,14 @@ public:
static void DrawMap();
static void TransformRadarPointToScreenSpace(CVector2D * out, CVector2D * in);
static void DrawBlips();
- static bool DisplayThisBlip(int16 spriteid, int counter);
+ static bool DisplayThisBlip(int16 spriteid);
static int CalculateBlipAlpha(float dist);
static CRGBA GetRadarTraceColour(uint32 color, bool bright);
- static int GetRadarTraceColour2(uint32 color, bool bright);
static void DrawRadarMap();
static void DrawRotatingRadarSprite(CSprite2d* sprite, float x, float y, float angle, int alpha);
static void TransformRealWorldPointToRadarSpace(CVector2D *out, CVector2D *in);
static float LimitRadarPoint(CVector2D *point);
static void DrawRadarSprite(int sprite, float x, float y, int alpha);
- static void ShowRadarMarker(CVector pos, uint32 color, float radius);
+ static void ShowRadarMarker(CVector pos, CRGBA color, float radius);
static void ShowRadarTrace(float x, float y, uint32 size, uint32 red, uint32 green, uint32 blue, uint32 alpha);
};