資源簡介
又一個用opengl實現的光線跟蹤算法 適合初學者

代碼片段和文件信息
//?AddSphere.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“noname.h“
#include?“AddSphere.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CAddSphere?dialog
CAddSphere::CAddSphere(CWnd*?pParent?/*=NULL*/)
:?CDialog(CAddSphere::IDD?pParent)
{
//{{AFX_DATA_INIT(CAddSphere)
m_R?=?0.0f;
m_Centerx?=?0.0f;
m_Centery?=?0.0f;
m_Centerz?=?0.0f;
m_ColorBlue?=?0.0f;
m_ColorGreen?=?0.0f;
m_ColorRed?=?0.0f;
m_Refra?=?0.0f;
m_Refre?=?0.0f;
//}}AFX_DATA_INIT
}
void?CAddSphere::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAddSphere)
DDX_Text(pDX?ID_R?m_R);
DDX_Text(pDX?IDC_Centerx?m_Centerx);
DDX_Text(pDX?IDC_Centery?m_Centery);
DDX_Text(pDX?IDC_Centerz?m_Centerz);
DDX_Text(pDX?IDC_EDIT_ColorBlue?m_ColorBlue);
DDV_MinMaxFloat(pDX?m_ColorBlue?0.f?1.f);
DDX_Text(pDX?IDC_EDIT_ColorGreen?m_ColorGreen);
DDV_MinMaxFloat(pDX?m_ColorGreen?0.f?1.f);
DDX_Text(pDX?IDC_EDIT_ColorRed?m_ColorRed);
DDV_MinMaxFloat(pDX?m_ColorRed?0.f?1.f);
DDX_Text(pDX?IDC_EDIT_Refra?m_Refra);
DDX_Text(pDX?IDC_EDIT_Refre?m_Refre);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAddSphere?CDialog)
//{{AFX_MSG_MAP(CAddSphere)
//?NOTE:?the?ClassWizard?will?add?message?map?macros?here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CAddSphere?message?handlers
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄??????????0??2007-06-20?10:43??RayTrace1.1
?????文件???????1599??2007-06-14?21:51??RayTrace1.1\AddSphere.cpp
?????文件???????1370??2007-06-14?21:51??RayTrace1.1\AddSphere.h
?????文件???????5122??2007-03-24?18:01??RayTrace1.1\Dib.cpp
?????文件???????1150??2006-07-21?16:03??RayTrace1.1\Dib.h
?????目錄??????????0??2007-06-09?10:12??RayTrace1.1\GLUT
?????目錄??????????0??2006-01-09?20:17??RayTrace1.1\GLUT\GLUT
?????文件??????27432??2001-09-17?00:00??RayTrace1.1\GLUT\GLUT\glut.h
?????文件?????221184??2001-09-17?00:00??RayTrace1.1\GLUT\GLUT\glut32.dll
?????文件??????28728??2001-09-17?00:00??RayTrace1.1\GLUT\GLUT\glut32.lib
?????文件???????2312??2003-07-04?22:36??RayTrace1.1\GLUT\GLUT\Readme.txt
?????文件????????959??2007-05-30?13:45??RayTrace1.1\Introduction.txt
?????文件??????37200??2007-06-14?22:31??RayTrace1.1\NoName.aps
?????文件???????2705??2007-06-20?10:40??RayTrace1.1\NoName.clw
?????文件???????2640??2007-05-16?10:25??RayTrace1.1\NoName.cpp
?????文件???????4741??2007-06-13?13:08??RayTrace1.1\NoName.dsp
?????文件????????537??2007-05-16?10:19??RayTrace1.1\NoName.dsw
?????文件???????1363??2007-05-16?10:22??RayTrace1.1\NoName.h
?????文件?????148480??2007-06-20?10:40??RayTrace1.1\NoName.ncb
?????文件??????57856??2007-06-20?10:40??RayTrace1.1\NoName.opt
?????文件???????1683??2007-06-20?10:27??RayTrace1.1\NoName.plg
?????文件???????7303??2007-06-14?22:31??RayTrace1.1\NoName.rc
?????文件??????15566??2007-06-16?11:14??RayTrace1.1\NoNameDlg.cpp
?????文件???????2414??2007-06-15?19:54??RayTrace1.1\NoNameDlg.h
?????文件???????3579??2007-05-16?10:19??RayTrace1.1\ReadMe.txt
?????目錄??????????0??2007-06-08?20:48??RayTrace1.1\res
?????文件???????1078??2007-05-16?10:19??RayTrace1.1\res\NoName.ico
?????文件????????398??2007-05-16?10:19??RayTrace1.1\res\NoName.rc2
?????文件???????1651??2007-06-14?22:18??RayTrace1.1\resource.h
?????文件???????3939??2007-06-14?22:20??RayTrace1.1\ShowTracedPicture.cpp
............此處省略9個文件信息
- 上一篇:fullcalendar-3.9.0 日歷控件
- 下一篇:linux 嵌入式實習報告
評論
共有 條評論