Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
892 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Namespace for functions dealing with Debug Overlays
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef NDEBUGOVERLAY_H
  8. #define NDEBUGOVERLAY_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "debugoverlay_shared.h"
  13. // An overlay line
  14. struct OverlayLine_t
  15. {
  16. Vector origin;
  17. Vector dest;
  18. int r;
  19. int g;
  20. int b;
  21. bool noDepthTest;
  22. bool draw;
  23. };
  24. extern void UTIL_AddDebugLine( const Vector &startPos, const Vector &endPos, bool noDepthTest, bool testLOS );
  25. extern void UTIL_DrawPositioningOverlay( float flCrossDistance );
  26. extern void UTIL_DrawOverlayLines( void );
  27. extern void DebugDrawLine( const Vector& vecAbsStart, const Vector& vecAbsEnd, int r, int g, int b, bool test, float duration );
  28. #endif // NDEBUGOVERLAY_H