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.

39 lines
2.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Debugging overlay functions
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. // $NoKeywords: $
  8. //=============================================================================//
  9. #ifndef DEBUGOVERLAY_H
  10. #define DEBUGOVERLAY_H
  11. #ifdef _WIN32
  12. #pragma once
  13. #endif
  14. namespace CDebugOverlay
  15. {
  16. #ifndef DEDICATED
  17. void AddEntityTextOverlay(int ent_index, int line_offset, float flDuration, int r, int g, int b, int a, const char *text);
  18. void AddBoxOverlay(const Vector& origin, const Vector& mins, const Vector& max, const QAngle & angles, int r, int g, int b, int a, float flDuration);
  19. void AddSphereOverlay(const Vector& vOrigin, float flRadius, int nTheta, int nPhi, int r, int g, int b, int a, float flDuration);
  20. void AddSweptBoxOverlay(const Vector& start, const Vector& end, const Vector& mins, const Vector& max, const QAngle & angles, int r, int g, int b, int a, float flDuration);
  21. void AddGridOverlay(const Vector& vPos );
  22. void AddCoordFrameOverlay(const matrix3x4_t& frame, float flScale, int ppColorTable[3][3] = NULL);
  23. void AddLineOverlay(const Vector& origin, const Vector& dest, int r, int g, int b, int a, bool noDepthTest, float flDuration);
  24. void AddTriangleOverlay(const Vector& p1, const Vector& p2, const Vector &p3, int r, int g, int b, int a, bool noDepthTest, float flDuration);
  25. void AddTextOverlay(const Vector& origin, float flDuration, const char *text);
  26. void AddTextOverlay(const Vector& origin, int line_offset, float flDuration, const char *text);
  27. void AddTextOverlay(const Vector& origin, int line_offset, float flDuration, float alpha, const char *text);
  28. void AddTextOverlay(const Vector& origin, int line_offset, float flDuration, float r, float g, float b, float alpha, const char *text);
  29. void AddScreenTextOverlay(float flXPos, float flYPos, float flDuration, int r, int g, int b, int a, const char *text);
  30. void AddScreenTextOverlay(float flXPos, float flYPos, int line_offset, float flDuration, int r, int g, int b, int a, const char *text);
  31. void AddTextOverlay(const Vector& textPos, float duration, float alpha, const char *text) ;
  32. void Draw3DOverlays(void);
  33. #endif
  34. }
  35. #endif // DEBUGOVERLAY_H