SurrenderWnd.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #if !defined(AFX_SURRENDERWND_H__33722FC2_8D65_466F_9EF6_F5D6E229C20A__INCLUDED_)
  19. #define AFX_SURRENDERWND_H__33722FC2_8D65_466F_9EF6_F5D6E229C20A__INCLUDED_
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. // SurrenderWnd.h : header file
  24. //
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CSurrenderWnd window
  27. class CameraClass;
  28. class SimpleSceneClass;
  29. class RenderObjClass;
  30. class HAnimClass;
  31. class Text2DObjClass;
  32. class ConvertClass;
  33. class CSurrenderWnd : public CWnd
  34. {
  35. // Construction
  36. public:
  37. CSurrenderWnd(CWnd *cwnd, int driver, int width, int height, int bitdepth, bool run_in_window);
  38. void RemoveSubclass();
  39. // Attributes
  40. public:
  41. CameraClass *m_Camera;
  42. CameraClass *m_TextCamera;
  43. SimpleSceneClass *m_Scene;
  44. SimpleSceneClass *m_TextScene;
  45. RenderObjClass *m_RObj;
  46. Text2DObjClass *m_Text;
  47. HAnimClass *m_Motion;
  48. CWnd *m_CWnd;
  49. int m_MotionTime;
  50. HWND m_RenderHWnd;
  51. int m_FrameRate;
  52. LONG m_SubClass;
  53. // Operations
  54. public:
  55. // Overrides
  56. // ClassWizard generated virtual function overrides
  57. //{{AFX_VIRTUAL(CSurrenderWnd)
  58. //}}AFX_VIRTUAL
  59. // Implementation
  60. public:
  61. virtual ~CSurrenderWnd();
  62. // Generated message map functions
  63. protected:
  64. //{{AFX_MSG(CSurrenderWnd)
  65. afx_msg void OnPaint();
  66. afx_msg void OnClose();
  67. afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  68. //}}AFX_MSG
  69. DECLARE_MESSAGE_MAP()
  70. };
  71. /////////////////////////////////////////////////////////////////////////////
  72. //{{AFX_INSERT_LOCATION}}
  73. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  74. #endif // !defined(AFX_SURRENDERWND_H__33722FC2_8D65_466F_9EF6_F5D6E229C20A__INCLUDED_)