aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/debugoverlay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDedicatedTest/debugoverlay.cpp')
-rw-r--r--NorthstarDedicatedTest/debugoverlay.cpp23
1 files changed, 2 insertions, 21 deletions
diff --git a/NorthstarDedicatedTest/debugoverlay.cpp b/NorthstarDedicatedTest/debugoverlay.cpp
index 7dee42e9..051f34e6 100644
--- a/NorthstarDedicatedTest/debugoverlay.cpp
+++ b/NorthstarDedicatedTest/debugoverlay.cpp
@@ -77,36 +77,17 @@ struct OverlayBox_t : public OverlayBase_t
int a;
};
-// this is in cvar.h, don't need it here
-/*class Color
-{
- public:
- Color(int r, int g, int b, int a)
- {
- _color[0] = (unsigned char)r;
- _color[1] = (unsigned char)g;
- _color[2] = (unsigned char)b;
- _color[3] = (unsigned char)a;
- }
-
- private:
- unsigned char _color[4];
-};*/
-
static HMODULE sEngineModule;
-typedef void (*DrawOverlayType)(OverlayBase_t* a1);
-DrawOverlayType DrawOverlay;
-
typedef void (*RenderLineType)(Vector3 v1, Vector3 v2, Color c, bool bZBuffer);
static RenderLineType RenderLine;
-
typedef void (*RenderBoxType)(Vector3 vOrigin, QAngle angles, Vector3 vMins, Vector3 vMaxs, Color c, bool bZBuffer, bool bInsideOut);
static RenderBoxType RenderBox;
-
static RenderBoxType RenderWireframeBox;
// engine.dll+0xABCB0
+typedef void (*DrawOverlayType)(OverlayBase_t* a1);
+DrawOverlayType DrawOverlay;
void __fastcall DrawOverlayHook(OverlayBase_t* pOverlay)
{
EnterCriticalSection((LPCRITICAL_SECTION)((char*)sEngineModule + 0x10DB0A38)); // s_OverlayMutex