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.

51 lines
3.9 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef DEBUGOVERLAY_SHARED_H
  7. #define DEBUGOVERLAY_SHARED_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "engine/ivdebugoverlay.h"
  12. #include "mathlib/vector.h"
  13. //=============================================================================
  14. // NDebugOverlay
  15. //=============================================================================
  16. namespace NDebugOverlay
  17. {
  18. void Box(const Vector &origin, const Vector &mins, const Vector &maxs, int r, int g, int b, int a, float flDuration);
  19. void BoxDirection(const Vector &origin, const Vector &mins, const Vector &maxs, const Vector &forward, int r, int g, int b, int a, float flDuration);
  20. void BoxAngles(const Vector &origin, const Vector &mins, const Vector &maxs, const QAngle &angles, int r, int g, int b, int a, float flDuration);
  21. void SweptBox(const Vector& start, const Vector& end, const Vector& mins, const Vector& maxs, const QAngle & angles, int r, int g, int b, int a, float flDuration);
  22. void EntityBounds( const CBaseEntity *pEntity, int r, int g, int b, int a, float flDuration );
  23. void Line( const Vector &origin, const Vector &target, int r, int g, int b, bool noDepthTest, float flDuration );
  24. void Triangle( const Vector &p1, const Vector &p2, const Vector &p3, int r, int g, int b, int a, bool noDepthTest, float duration );
  25. void EntityText( int entityID, int text_offset, const char *text, float flDuration, int r = 255, int g = 255, int b = 255, int a = 255);
  26. void EntityTextAtPosition( const Vector &origin, int text_offset, const char *text, float flDuration, int r = 255, int g = 255, int b = 255, int a = 255);
  27. void Grid( const Vector &vPosition );
  28. void Text( const Vector &origin, const char *text, bool bViewCheck, float flDuration );
  29. void ScreenText( float fXpos, float fYpos, const char *text, int r, int g, int b, int a, float flDuration);
  30. void Cross3D(const Vector &position, const Vector &mins, const Vector &maxs, int r, int g, int b, bool noDepthTest, float flDuration );
  31. void Cross3D(const Vector &position, float size, int r, int g, int b, bool noDepthTest, float flDuration );
  32. void Cross3DOriented( const Vector &position, const QAngle &angles, float size, int r, int g, int b, bool noDepthTest, float flDuration );
  33. void Cross3DOriented( const matrix3x4_t &m, float size, int c, bool noDepthTest, float flDuration );
  34. void DrawOverlayLines(void);
  35. void DrawTickMarkedLine(const Vector &startPos, const Vector &endPos, float tickDist, int tickTextDist, int r, int g, int b, bool noDepthTest, float flDuration );
  36. void DrawGroundCrossHairOverlay();
  37. void HorzArrow( const Vector &startPos, const Vector &endPos, float width, int r, int g, int b, int a, bool noDepthTest, float flDuration);
  38. void YawArrow( const Vector &startPos, float yaw, float length, float width, int r, int g, int b, int a, bool noDepthTest, float flDuration);
  39. void VertArrow( const Vector &startPos, const Vector &endPos, float width, int r, int g, int b, int a, bool noDepthTest, float flDuration);
  40. void Axis( const Vector &position, const QAngle &angles, float size, bool noDepthTest, float flDuration );
  41. void Sphere( const Vector &center, float radius, int r, int g, int b, bool noDepthTest, float flDuration );
  42. void Circle( const Vector &position, float radius, int r, int g, int b, int a, bool bNoDepthTest, float flDuration );
  43. void Circle( const Vector &position, const QAngle &angles, float radius, int r, int g, int b, int a, bool bNoDepthTest, float flDuration );
  44. void Circle( const Vector &position, const Vector &xAxis, const Vector &yAxis, float radius, int r, int g, int b, int a, bool bNoDepthTest, float flDuration );
  45. void Sphere( const Vector &position, const QAngle &angles, float radius, int r, int g, int b, int a, bool bNoDepthTest, float flDuration );
  46. };
  47. #endif // DEBUGOVERLAY_SHARED_H