www.pudn.com > RayTrace1.1.rar > NoNameDlg.h


// NoNameDlg.h : header file 
// 
 
#if !defined(AFX_NONAMEDLG_H__820732C4_FBF8_47F8_AAE7_4D23C6B7864C__INCLUDED_) 
#define AFX_NONAMEDLG_H__820732C4_FBF8_47F8_AAE7_4D23C6B7864C__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
#include "Vector3.h" 
#include "Dib.h" 
#include "ShowTracedPicture.h" 
///////////////////////////////////////////////////////////////////////////// 
// CNoNameDlg dialog 
 
class CNoNameDlg : public CDialog 
{ 
// Construction 
public: 
	void BuildList_Eye(); 
	void BuildList_Flat(); 
	void RenderScene(); 
	BOOL CreateViewGLContext(HDC hDC); 
	int m_GLPixelIndex; 
	BOOL SetWindowPixelFormat(HDC hDC); 
	void BuildList(); 
	CNoNameDlg(CWnd* pParent = NULL);	// standard constructor 
	HGLRC m_hGLContext; 
	float x; 
	float x_flat; 
	float Eye_x; 
	float Eye_y; 
	float Eye_z; 
	float View_z; 
	float Sphere_r; 
	int TranslateChoice; 
	int Dirction; 
	CSurface* surface; 
	RGBQUAD** buffer; 
	CRayTraceEngine* tracer; 
	CShowTracedPicture ShowPic; 
 
	CBitmap* 	m_pResMap; 
 
	int m_nWndWidth;//ͼÏñ¿í¶È 
	int m_nWndHeight;//ͼÏñ¸ß¶È 
 
	 
 
 
 
// Dialog Data 
	//{{AFX_DATA(CNoNameDlg) 
	enum { IDD = IDD_NONAME_DIALOG }; 
		// NOTE: the ClassWizard will add data members here 
	//}}AFX_DATA 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CNoNameDlg) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	HICON m_hIcon; 
 
	// Generated message map functions 
	//{{AFX_MSG(CNoNameDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnDestroy(); 
	afx_msg void OnTimer(UINT nIDEvent); 
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point); 
	afx_msg void OnTracedPicture(); 
	afx_msg void OnAddSphere(); 
	afx_msg void OnDeleteObject(); 
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); 
	afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_NONAMEDLG_H__820732C4_FBF8_47F8_AAE7_4D23C6B7864C__INCLUDED_)