This commit is contained in:
FluorescentCIAAfricanAmerican
2020-04-22 12:56:21 -04:00
commit 3bf9df6b27
15370 changed files with 5489726 additions and 0 deletions

41
gameui/TGAImagePanel.h Normal file
View File

@@ -0,0 +1,41 @@
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#ifndef TGAIMAGEPANEL_H
#define TGAIMAGEPANEL_H
#ifdef _WIN32
#pragma once
#endif
#include "vgui_controls/Panel.h"
using namespace vgui;
//-----------------------------------------------------------------------------
// Purpose: Displays a tga image
//-----------------------------------------------------------------------------
class CTGAImagePanel : public vgui::Panel
{
DECLARE_CLASS_SIMPLE( CTGAImagePanel, vgui::Panel );
public:
CTGAImagePanel( vgui::Panel *parent, const char *name );
~CTGAImagePanel();
void SetTGA( const char *filename );
void SetTGANonMod( const char *filename );
virtual void Paint( void );
private:
int m_iTextureID;
int m_iImageWidth, m_iImageHeight;
bool m_bHasValidTexture, m_bLoadedTexture;
char m_szTGAName[256];
};
#endif //TGAIMAGEPANEL_H