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.

40 lines
917 B

  1. //====== Copyright � 1996-2003, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef TGAPREVIEWPANEL_H
  7. #define TGAPREVIEWPANEL_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "matsys_controls/proceduraltexturepanel.h"
  12. #include "tier1/utlstring.h"
  13. //-----------------------------------------------------------------------------
  14. //
  15. // TGA Preview panel
  16. //
  17. //-----------------------------------------------------------------------------
  18. class CTGAPreviewPanel : public CProceduralTexturePanel
  19. {
  20. DECLARE_CLASS_SIMPLE( CTGAPreviewPanel, CProceduralTexturePanel );
  21. public:
  22. // constructor
  23. CTGAPreviewPanel( vgui::Panel *pParent, const char *pName );
  24. void SetTGA( const char *pFullPath );
  25. const char *GetTGA() const;
  26. virtual void PerformLayout();
  27. private:
  28. CUtlString m_TGAName;
  29. };
  30. #endif // TGAPREVIEWPANEL_H