diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/ndebugoverlay.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/server/ndebugoverlay.h')
| -rw-r--r-- | game/server/ndebugoverlay.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/game/server/ndebugoverlay.h b/game/server/ndebugoverlay.h new file mode 100644 index 0000000..7b0a64a --- /dev/null +++ b/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 |