Team Fortress 2 Source Code as on 22/4/2020
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.

40 lines
789 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef FACEPOSER_VGUI_H
  7. #define FACEPOSER_VGUI_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. class IMatSystemSurface;
  12. class CVGuiWnd;
  13. extern IMatSystemSurface *g_pMatSystemSurface;
  14. class CFacePoserVGui
  15. {
  16. public:
  17. CFacePoserVGui(void);
  18. ~CFacePoserVGui(void);
  19. bool Init( HWND hWindow );
  20. void Simulate();
  21. void Shutdown();
  22. bool HasFocus( CVGuiWnd *pWnd );
  23. void SetFocus( CVGuiWnd *pWnd );
  24. bool IsInitialized() { return m_hMainWindow != NULL; };
  25. protected:
  26. HWND m_hMainWindow;
  27. CVGuiWnd *m_pActiveWindow; // the VGUI window that has the focus
  28. };
  29. CFacePoserVGui *FaceposerVGui();
  30. #endif // FACEPOSER_VGUI_H