www.pudn.com > DEM_TDS.rar > GLEnabledView.h, change:2007-06-02,size:2244b


#if !defined(AFX_GLENABLEDVIEW_H__26581ABB_E2E6_47D2_8A86_B45FFECA00C5__INCLUDED_) 
#define AFX_GLENABLEDVIEW_H__26581ABB_E2E6_47D2_8A86_B45FFECA00C5__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// GLEnabledView.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CGLEnabledView view 
 
class CGLEnabledView : public CView 
{ 
protected: 
	bool moving; 
 	double Az; 
	double El; 
	CGLEnabledView();           // protected constructor used by dynamic creation 
	DECLARE_DYNCREATE(CGLEnabledView) 
 
// Attributes 
public: 
	bool draw_3D; 
	GLuint texture[2]; 
// Operations 
public: 
	void BuildTexture(); 
	void BuildList(); 
////////////////////////////////////////////////////////////////// 
//添加成员变量与成员函数 
	CDC* m_pDC;						// Windows设备描述表 
	HGLRC m_hRC;					// OpenGL渲染描述表 
	CRect m_ClientRect;				// 客户区的大小 
	double m_dAspectRatio;			// 窗口的比例 
 
	HPALETTE	m_hPalette;			//调色板 
	BOOL SetupPixelFormat();		 
	BOOL InitializeOpenGL(); 
	void SetLogicalPalette(void); 
	virtual void OnDrawGL();		// 图形绘制虚函数,在继承类中可以改写 
////////////////////////////////////////////////////////////////// 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CGLEnabledView) 
	protected: 
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	virtual ~CGLEnabledView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
	// Generated message map functions 
protected: 
 
	//{{AFX_MSG(CGLEnabledView) 
	afx_msg BOOL OnEraseBkgnd(CDC* pDC); 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnDestroy(); 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_GLENABLEDVIEW_H__26581ABB_E2E6_47D2_8A86_B45FFECA00C5__INCLUDED_)