aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/server/ndebugoverlay.h
blob: 7b0a64a9d3946a0277f42e7f99d7cfed338dc43e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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