Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
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

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef BITMAPIMAGEPANEL_H
#define BITMAPIMAGEPANEL_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui_controls/Panel.h>
class CBitmapImagePanel : public vgui::Panel
{
public:
CBitmapImagePanel( vgui::Panel *parent, char const *panelName, char const *filename = NULL );
virtual void PaintBackground();
virtual void setTexture( char const *filename );
virtual void forceReload( void );
private:
typedef vgui::Panel BaseClass;
void forceUpload();
bool m_bUploaded;
int m_nTextureId;
char m_szTexture[ 128 ];
};
#endif // BITMAPIMAGEPANEL_H