-
大小: 2.97MB文件類型: .rar金幣: 2下載: 0 次發布日期: 2023-09-19
- 語言: 其他
- 標簽: OpenGL,dem??
資源簡介
基于OpenGL的vc程序,可以讀取dem數據生成三維地形,效果很好

代碼片段和文件信息
//?dialog.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“dialog.h“
#include?“dialogDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CDialogApp
BEGIN_MESSAGE_MAP(CDialogApp?CWinApp)
//{{AFX_MSG_MAP(CDialogApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CDialogApp?construction
CDialogApp::CDialogApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CDialogApp?object
CDialogApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CDialogApp?initialization
BOOL?CDialogApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CDialogDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????1933367??2003-09-22?22:06??test\DEMO(release版).exe
?????文件?????393272??2003-09-22?21:48??test\dh10.bmp
?????文件????????154??1997-12-14?21:31??test\dh10.mtl
?????文件?????412274??1999-12-14?22:06??test\dh10.obj
?????文件???????1603??2010-04-26?15:09??test\dialog.clw
?????文件???????2061??2003-09-22?17:39??test\dialog.cpp
?????文件????????537??2001-03-20?21:29??test\dialog.dsw
?????文件???????1332??1999-05-14?10:16??test\dialog.h
?????文件???????1661??1998-08-25?23:34??test\Dibapi.h
?????文件????????204??1999-05-14?10:16??test\StdAfx.cpp
?????文件????????987??2003-09-22?22:05??test\StdAfx.h
?????文件????????678??2003-09-22?23:09??test\程序說明.txt
?????文件??????74752??2010-04-26?15:09??test\dialog.ncb
?????文件???????1068??2010-04-20?21:54??test\dialog.plg
?????文件???????1909??2010-04-09?18:03??test\dialogDlg.h
?????文件??????22650??2010-04-09?19:52??test\Dibapi.cpp
?????文件???????3709??2010-04-09?21:08??test\dialog.dsp
?????文件???????1372??2003-09-22?22:32??test\draw.h
?????文件???????2010??2001-01-04?20:51??test\draw.lib
?????文件?????182784??2001-01-04?20:50??test\draw.dll
?????文件???????1159??1999-06-21?18:24??test\Splash.h
?????文件???????3209??2003-09-22?22:54??test\Splash.cpp
?????文件???????7144??2010-04-20?21:52??test\dialog.rc
?????文件???????1725??2010-04-20?21:52??test\resource.h
?????文件????2245776??2010-04-20?21:52??test\dialog.aps
?????文件??????23633??2010-04-20?21:54??test\dialogDlg.cpp
?????文件??????59904??2010-04-26?15:09??test\dialog.opt
?????文件??????57644??1999-05-14?16:59??test\res\crater.dem
?????文件???????1078??1999-05-14?10:16??test\res\dialog.ico
?????文件????????398??1999-05-14?10:16??test\res\dialog.rc2
............此處省略11個文件信息
- 上一篇:很好的數據結構課件 西北大學
- 下一篇:三菱PLC編程
評論
共有 條評論