www.pudn.com > roam.rar > ROAMView.h


// ROAMView.h : interface of the CROAMView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_ROAMVIEW_H__780D94C3_6477_4A40_B25F_E9F70F1F5F06__INCLUDED_) 
#define AFX_ROAMVIEW_H__780D94C3_6477_4A40_B25F_E9F70F1F5F06__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
#include "RoamTerrain.h" 
 
 
class CROAMView : public CView 
{ 
protected: // create from serialization only 
	CROAMView(); 
	DECLARE_DYNCREATE(CROAMView) 
 
// Attributes 
public: 
	CROAMDoc* GetDocument(); 
 
// Operations 
public: 
 
	CRoamTerrain* roamTerrain; 
	CClientDC* m_pDC; 
	AUX_RGBImageRec * TextureImage; 
	GLdouble cenPos[3];  //参考方向位置信息 
	GLdouble m_Angle; 
	GLdouble eyePos[3];  //眼睛位置信息 
	int deltaX; 
	int deltaY; 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CROAMView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	protected: 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	void KeyCtrlRoam(UINT lrKey, UINT lrValue, UINT udKey, UINT udValue); 
	void DrawScene(); 
	void DrawTerrain(); 
	int LoadGLTextures(); 
	AUX_RGBImageRec* LoadBMP(char *Filename); 
	void Init(); 
	BOOL bSetupPixelFormat(); 
	virtual ~CROAMView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CROAMView) 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnDestroy(); 
	afx_msg BOOL OnEraseBkgnd(CDC* pDC); 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in ROAMView.cpp 
inline CROAMDoc* CROAMView::GetDocument() 
   { return (CROAMDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_ROAMVIEW_H__780D94C3_6477_4A40_B25F_E9F70F1F5F06__INCLUDED_)