summaryrefslogtreecommitdiff
path: root/game/client/tf/vgui/modelimagepanel.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf/vgui/modelimagepanel.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/tf/vgui/modelimagepanel.h')
-rw-r--r--game/client/tf/vgui/modelimagepanel.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/game/client/tf/vgui/modelimagepanel.h b/game/client/tf/vgui/modelimagepanel.h
new file mode 100644
index 0000000..4c2ede0
--- /dev/null
+++ b/game/client/tf/vgui/modelimagepanel.h
@@ -0,0 +1,43 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================
+#ifndef MODELIMAGEPANEL_H
+#define MODELIMAGEPANEL_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "basemodel_panel.h"
+
+class CIconRenderReceiver;
+
+class CModelImagePanel : public CBaseModelPanel
+{
+DECLARE_CLASS_SIMPLE( CModelImagePanel, CBaseModelPanel );
+
+public:
+
+ // Constructor, Destructor.
+ CModelImagePanel( vgui::Panel *pParent, const char *pName );
+ virtual ~CModelImagePanel();
+
+ virtual void PerformLayout() OVERRIDE;
+ virtual void Paint() OVERRIDE;
+ virtual void OnSizeChanged( int wide, int tall ) OVERRIDE;
+
+ virtual void SetMDL( MDLHandle_t handle, void *pProxyData = NULL ) OVERRIDE;
+ virtual void SetMDL( const char *pMDLName, void *pProxyData = NULL ) OVERRIDE;
+ void SetMDLBody( unsigned int nBody );
+ void SetMDLSkin( int nSkin );
+
+ void InvalidateImage();
+
+private:
+ CIconRenderReceiver *m_pCachedIcon;
+ IMaterial *m_pCachedMaterial;
+ int m_iCachedTextureID;
+};
+
+#endif // MODELIMAGEPANEL_H