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 /utils/hlfaceposer/faceposer_vgui.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'utils/hlfaceposer/faceposer_vgui.h')
| -rw-r--r-- | utils/hlfaceposer/faceposer_vgui.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/utils/hlfaceposer/faceposer_vgui.h b/utils/hlfaceposer/faceposer_vgui.h new file mode 100644 index 0000000..f905fae --- /dev/null +++ b/utils/hlfaceposer/faceposer_vgui.h @@ -0,0 +1,40 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//============================================================================= + +#ifndef FACEPOSER_VGUI_H +#define FACEPOSER_VGUI_H +#ifdef _WIN32 +#pragma once +#endif + +class IMatSystemSurface; +class CVGuiWnd; + +extern IMatSystemSurface *g_pMatSystemSurface; + +class CFacePoserVGui +{ +public: + CFacePoserVGui(void); + ~CFacePoserVGui(void); + + bool Init( HWND hWindow ); + void Simulate(); + void Shutdown(); + bool HasFocus( CVGuiWnd *pWnd ); + void SetFocus( CVGuiWnd *pWnd ); + bool IsInitialized() { return m_hMainWindow != NULL; }; + + +protected: + + HWND m_hMainWindow; + CVGuiWnd *m_pActiveWindow; // the VGUI window that has the focus +}; + +CFacePoserVGui *FaceposerVGui(); + +#endif // FACEPOSER_VGUI_H |