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.

38 lines
882 B

  1. //========= Copyright 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. private:
  27. CUtlString m_TGAName;
  28. };
  29. #endif // TGAPREVIEWPANEL_H