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.

38 lines
1.0 KiB

  1. //========= Copyright � 1996-2009, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=====================================================================================//
  6. #ifndef __SFUIAVATARIMAGE_H__
  7. #define __SFUIAVATARIMAGE_H__
  8. #include "scaleformuiimage.h"
  9. #ifndef NO_STEAM
  10. #include "steam/steam_api.h"
  11. #endif
  12. #if !defined( _X360 )
  13. typedef uint64 XUID;
  14. #endif
  15. //-----------------------------------------------------------------------------
  16. // Purpose:
  17. //-----------------------------------------------------------------------------
  18. class ScaleformUIAvatarImage : public ScaleformUIImage
  19. {
  20. public:
  21. static IScaleformAvatarImageProvider *sm_pProvider;
  22. public:
  23. ScaleformUIAvatarImage( XUID xuid, const byte* defaultRgba, int defaultWidth, int defaultHeight, ::ImageFormat defaultFormat, SF::GFx::TextureManager* pTextureManager );
  24. bool LoadAvatarImage( IScaleformAvatarImageProvider *pProvider = NULL );
  25. private:
  26. XUID m_xXUID;
  27. CUtlBuffer m_bufRgbaBuffer;
  28. };
  29. #endif // __SFUIAVATARIMAGE_H__