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.

35 lines
1.1 KiB

  1. //========= Copyright � 1996-2013, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=====================================================================================//
  6. #ifndef __SFUIINVENTORYIMAGE_H__
  7. #define __SFUIINVENTORYIMAGE_H__
  8. #include "scaleformuiimage.h"
  9. #if !defined( _X360 )
  10. typedef uint64 XUID;
  11. #endif
  12. //-----------------------------------------------------------------------------
  13. // Purpose:
  14. //-----------------------------------------------------------------------------
  15. class ScaleformUIInventoryImage : public ScaleformUIImage
  16. {
  17. public:
  18. ScaleformUIInventoryImage( uint64 itemid, const byte* defaultRgba, int defaultWidth, int defaultHeight, ::ImageFormat defaultFormat, SF::GFx::TextureManager* pTextureManager );
  19. bool LoadInventoryImage( const CUtlBuffer* rawImageData, int nWidth, int nHeight, ::ImageFormat format );
  20. private:
  21. #ifdef USE_OVERLAY_ON_INVENTORY_ICONS
  22. void OverlayFromBuffer( const byte *rgba, int width, int height, ::ImageFormat format );
  23. #endif
  24. uint64 m_itemid;
  25. };
  26. #endif // __SFUIINVENTORYIMAGE_H__