aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/server/ndebugoverlay.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /sp/src/game/server/ndebugoverlay.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/game/server/ndebugoverlay.h')
-rw-r--r--sp/src/game/server/ndebugoverlay.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/sp/src/game/server/ndebugoverlay.h b/sp/src/game/server/ndebugoverlay.h
new file mode 100644
index 00000000..bdfeb463
--- /dev/null
+++ b/sp/src/game/server/ndebugoverlay.h
@@ -0,0 +1,34 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Namespace for functions dealing with Debug Overlays
+//
+// $NoKeywords: $
+//=============================================================================//
+#ifndef NDEBUGOVERLAY_H
+#define NDEBUGOVERLAY_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "debugoverlay_shared.h"
+
+// An overlay line
+struct OverlayLine_t
+{
+ Vector origin;
+ Vector dest;
+ int r;
+ int g;
+ int b;
+ bool noDepthTest;
+ bool draw;
+};
+
+extern void UTIL_AddDebugLine( const Vector &startPos, const Vector &endPos, bool noDepthTest, bool testLOS );
+extern void UTIL_DrawPositioningOverlay( float flCrossDistance );
+extern void UTIL_DrawOverlayLines( void );
+
+extern void DebugDrawLine( const Vector& vecAbsStart, const Vector& vecAbsEnd, int r, int g, int b, bool test, float duration );
+
+#endif // NDEBUGOVERLAY_H