Team Fortress 2 Source Code as on 22/4/2020
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.

37 lines
762 B

  1. //========= Copyright 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 void PaintBackground();
  18. virtual void setTexture( char const *filename );
  19. virtual void forceReload( void );
  20. private:
  21. typedef vgui::Panel BaseClass;
  22. void forceUpload();
  23. bool m_bUploaded;
  24. int m_nTextureId;
  25. char m_szTexture[ 128 ];
  26. };
  27. #endif // BITMAPIMAGEPANEL_H