Counter Strike : Global Offensive Source Code
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.

44 lines
910 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Defines the interface for rendering in the 2D views.
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef RENDER2D_H
  8. #define RENDER2D_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "Render.h"
  13. class CRender2D : public CRender
  14. {
  15. public:
  16. //
  17. // construction/deconstruction
  18. //
  19. CRender2D();
  20. ~CRender2D();
  21. //
  22. // setup (view) data
  23. //
  24. void MoveTo( const Vector &vPoint );
  25. void DrawLineTo( const Vector &vPoint );
  26. void DrawRectangle( const Vector &vMins, const Vector &vMaxs, bool bFill = false, int extent = 0 );
  27. void DrawBox( const Vector &vMins, const Vector &vMaxs, bool bFill = false );
  28. void DrawCircle( const Vector &vCenter, float fRadius );
  29. protected:
  30. Vector m_vCurLine;
  31. };
  32. #endif // RENDER2D_H