home *** CD-ROM | disk | FTP | other *** search
- // 3dWnd.h : header file
- //
-
- /////////////////////////////////////////////////////////////////////////////
- // C3dWnd window
-
- class C3dWnd : public CWnd
- {
- // Construction
- public:
- C3dWnd();
- BOOL Create(const char* pszCaption,
- DWORD dwStyle,
- int x, int y,
- int cx, int cy,
- CWnd* pParent = NULL);
-
- // Attributes
- public:
-
- // Operations
- public:
- BOOL Update();
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(C3dWnd)
- protected:
- virtual void PostNcDestroy();
- //}}AFX_VIRTUAL
-
- // Implementation
- public:
- virtual ~C3dWnd();
-
- // Generated message map functions
- protected:
- //{{AFX_MSG(C3dWnd)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnDestroy();
- afx_msg void OnMove(int x, int y);
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnPaint();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
-
- protected:
- static BOOL s_bRegistered;
- static BOOL Register();
- CDirectDraw* m_pDD;
- CDirect3D* m_pD3D;
- C3dStage* m_pStage;
- C3dScene* m_pScene;
- BOOL m_bEnableUpdates;
- HWND m_hwndDD; // direct draw window
- int m_iWidth; // client width
- int m_iHeight; // client height
- CRect m_rcClient; // client area in screen coords
- BOOL m_bRepaintAll; // window size changed etc.
-
- BOOL _CreateStage();
- void _ReleaseStage();
-
- };
-
- /////////////////////////////////////////////////////////////////////////////
-