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
844 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef BITMAPIMAGEPANEL_H
  8. #define BITMAPIMAGEPANEL_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/Panel.h>
  13. class CBitmapImagePanel : public vgui::Panel
  14. {
  15. public:
  16. CBitmapImagePanel( vgui::Panel *parent, char const *panelName, char const *filename = NULL );
  17. virtual ~CBitmapImagePanel();
  18. virtual void PaintBackground();
  19. virtual void setTexture( char const *filename );
  20. virtual void forceReload( void );
  21. private:
  22. typedef vgui::Panel BaseClass;
  23. void forceUpload();
  24. bool m_bUploaded;
  25. int m_nTextureId;
  26. char m_szTexture[ 128 ];
  27. };
  28. #endif // BITMAPIMAGEPANEL_H