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.

56 lines
1.1 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef GAMERECT_H
  8. #define GAMERECT_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "gamegraphic.h"
  13. #include "dmxloader/dmxelement.h"
  14. #include "tier1/utlvector.h"
  15. class CAnimData;
  16. //-----------------------------------------------------------------------------
  17. //
  18. //-----------------------------------------------------------------------------
  19. class CGameRect : public CGameGraphic
  20. {
  21. DECLARE_DMXELEMENT_UNPACK()
  22. public:
  23. CGameRect( const char *pName );
  24. virtual ~CGameRect();
  25. bool Unserialize( CDmxElement *pGraphic );
  26. // Update geometry and execute scripting.
  27. virtual void UpdateGeometry();
  28. virtual void UpdateRenderData( color32 parentColor, CUtlVector< RenderGeometryList_t > &renderGeometryLists, int firstListIndex );
  29. virtual bool HitTest( int x, int y );
  30. protected:
  31. CGameRect();
  32. void SetupVertexColors();
  33. CUtlVector< Vector2D > m_ScreenPositions;
  34. };
  35. #endif // GAMERECT_H