diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /hammer/wndtex.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'hammer/wndtex.h')
| -rw-r--r-- | hammer/wndtex.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/hammer/wndtex.h b/hammer/wndtex.h new file mode 100644 index 0000000..42482a5 --- /dev/null +++ b/hammer/wndtex.h @@ -0,0 +1,44 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: Defines a window for displaying a single texture within. +// +// $Workfile: $ +// $Date: $ +// +//----------------------------------------------------------------------------- +// $Log: $ +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef WNDTEX_H +#define WNDTEX_H +#pragma once + + +class wndTex : public CStatic +{ + public: + + wndTex() : m_pTexture(NULL) + { + } + + void SetTexture(IEditorTexture *pTex); + + inline IEditorTexture *GetTexture(void) + { + return(m_pTexture); + } + + protected: + + IEditorTexture *m_pTexture; + + afx_msg void OnPaint(); + + DECLARE_MESSAGE_MAP(); +}; + + +#endif // WNDTEX_H |