資源簡介
opengl中加載DEM數據的方法和貼紋理方法等的源碼

代碼片段和文件信息
//?DEM.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“DEM.h“
#include?“MainFrm.h“
#include?“DEMDoc.h“
#include?“DEMView.h“
#include?“Splash.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CDEMApp
BEGIN_MESSAGE_MAP(CDEMApp?CWinApp)
//{{AFX_MSG_MAP(CDEMApp)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG_MAP
//?Standard?file?based?document?commands
ON_COMMAND(ID_FILE_NEW?CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?CWinApp::OnFileOpen)
//?Standard?print?setup?command
ON_COMMAND(ID_FILE_PRINT_SETUP?CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CDEMApp?construction
CDEMApp::CDEMApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CDEMApp?object
CDEMApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CDEMApp?initialization
BOOL?CDEMApp::InitInstance()
{
//?CG:?The?following?block?was?added?by?the?Splash?Screen?component.
\
{
\
CCommandLineInfo?cmdInfo;
\
ParseCommandLine(cmdInfo);
\
\
CSplashWnd::EnableSplashScreen(cmdInfo.m_bShowSplash);
\
}
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
//?Change?the?registry?key?under?which?our?settings?are?stored.
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization.
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
LoadStdProfileSettings();??//?Load?standard?INI?file?options?(including?MRU)
//?Register?the?application‘s?document?templates.??Document?templates
//??serve?as?the?connection?between?documents?frame?windows?and?views.
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CDEMDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CDEMView));
AddDocTemplate(pDocTemplate);
//?Parse?command?line?for?standard?shell?commands?DDE?file?open
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);
//?Dispatch?commands?specified?on?the?command?line
if?(!ProcessShellCommand(cmdInfo))
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????13527??2007-01-23?22:44??DEM\DEM.rc
?????文件???????4670??2007-01-21?16:23??DEM\DEM.cpp
?????文件???????1370??2007-01-21?16:23??DEM\DEM.h
?????文件???????3062??2007-10-25?22:40??DEM\DEM.clw
?????文件???????4239??2007-01-06?20:38??DEM\ReadMe.txt
?????文件???????6751??2007-01-23?23:13??DEM\DEM.dsp
?????文件????1364695??2007-01-23?21:36??DEM\用戶手冊.CHM
?????文件?????216928??2007-10-25?22:39??DEM\DEM.APS
?????文件????????205??2007-01-06?20:38??DEM\StdAfx.cpp
?????文件???????1926??2007-01-23?22:44??DEM\Resource.h
?????文件???????3978??2007-01-23?23:12??DEM\DEMView.h
?????文件???????1442??2007-01-06?20:38??DEM\DEMDoc.h
?????文件???????1682??2007-01-06?20:38??DEM\DEMDoc.cpp
?????文件???????3264??2007-01-23?17:37??DEM\Splash.cpp
?????文件???????1307??2007-01-22?22:37??DEM\DemAction.h
?????文件???????1406??2007-01-23?21:55??DEM\DemData.h
?????文件???????5313??2007-01-20?09:56??DEM\DemSky.cpp
?????文件???????1243??2007-01-21?16:50??DEM\Splash.h
?????文件????????531??2007-01-06?20:38??DEM\DEM.dsw
?????文件?????312320??2007-10-25?22:40??DEM\DEM.ncb
?????文件????????896??2007-01-20?00:54??DEM\DemSky.h
?????文件???????4471??2007-01-22?22:37??DEM\DemAction.cpp
?????文件???????3330??2007-10-25?22:39??DEM\DEM.plg
?????文件???????1496??2007-01-23?22:49??DEM\MainFrm.h
?????文件???????1246??2007-01-21?15:28??DEM\HeightDialog.h
?????文件????????840??2007-01-08?23:43??DEM\Vector.h
?????文件???????1678??2007-01-08?23:45??DEM\Vector.cpp
?????文件???????4741??2007-01-23?22:50??DEM\MainFrm.cpp
?????目錄??????????0??2007-01-23?23:22??DEM\Debug
?????文件????????395??2007-01-06?20:38??DEM\res\DEM.rc2
............此處省略36個文件信息
評論
共有 條評論