www.pudn.com > VC中OpenGL编程实现虚拟现实.rar > VRDemoView.h, change:2003-04-07,size:2287b


// VRDemoView.h : interface of the CVRDemoView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_VRDEMOVIEW_H__508AA7A5_E290_4666_9D1C_3E2E184A6260__INCLUDED_) 
#define AFX_VRDEMOVIEW_H__508AA7A5_E290_4666_9D1C_3E2E184A6260__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "House.h" 
#include "Ground.h" 
 
class CVRDemoView : public CView 
{ 
protected: // create from serialization only 
	CVRDemoView(); 
	DECLARE_DYNCREATE(CVRDemoView) 
 
// Attributes 
public: 
	CVRDemoDoc* GetDocument(); 
 
// Operations 
public: 
	BOOL SetWindowPixelFormat(HDC hDC);  // 设置屏幕参数 
	HGLRC m_hGLRC;                       // OpenGL绘制设备环境 
 
	CHouse m_cHouse;                     // 房屋对象 
	CGround m_cGround;                   // 雪地对象 
 
    int m_nOldMx,m_nOldMy;               // 前一次鼠标坐标 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CVRDemoView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	protected: 
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); 
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); 
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CVRDemoView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CVRDemoView) 
	afx_msg void OnMouseMove(UINT nFlags, CPoint point); 
	afx_msg void OnPaint(); 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnDestroy(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in VRDemoView.cpp 
inline CVRDemoDoc* CVRDemoView::GetDocument() 
   { return (CVRDemoDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_VRDEMOVIEW_H__508AA7A5_E290_4666_9D1C_3E2E184A6260__INCLUDED_)