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.

51 lines
1.1 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef DYNAMICRECT_H
  8. #define DYNAMICRECT_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "gamerect.h"
  13. #include "dmxloader/dmxelement.h"
  14. #include "tier1/utlvector.h"
  15. #include "tier1/keyvalues.h"
  16. //-----------------------------------------------------------------------------
  17. //
  18. //-----------------------------------------------------------------------------
  19. class CDynamicRect : public CGameRect
  20. {
  21. DECLARE_DMXELEMENT_UNPACK()
  22. public:
  23. CDynamicRect( const char *pName );
  24. virtual ~CDynamicRect();
  25. bool Unserialize( CDmxElement *pGraphic );
  26. virtual void UpdateRenderData( color32 parentColor, CUtlVector< RenderGeometryList_t > &renderGeometryLists, int firstListIndex );
  27. virtual KeyValues *HandleScriptCommand( KeyValues *args );
  28. virtual bool IsDynamic() const { return true; }
  29. virtual const char *GetMaterialAlias(){ return m_ImageAlias; }
  30. protected:
  31. CDynamicRect();
  32. CUtlString m_ImageAlias;
  33. };
  34. #endif // DYNAMICRECT_H