資源簡介
通過本本程序可以成功的將3ds max模型導入opengl中

代碼片段和文件信息
//?3DSLoader.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“3DSLoader.h“
#include?“MainFrm.h“
#include?“3DSLoaderDoc.h“
#include?“3DSLoaderView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMy3DSLoaderApp
BEGIN_MESSAGE_MAP(CMy3DSLoaderApp?CWinApp)
//{{AFX_MSG_MAP(CMy3DSLoaderApp)
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()
/////////////////////////////////////////////////////////////////////////////
//?CMy3DSLoaderApp?construction
CMy3DSLoaderApp::CMy3DSLoaderApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMy3DSLoaderApp?object
CMy3DSLoaderApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMy3DSLoaderApp?initialization
BOOL?CMy3DSLoaderApp::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
//?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(CMy3DSLoaderDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CMy3DSLoaderView));
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))
return?FALSE;
//?The?one?and?only?window?has?been?initialized?so?show?and?update?it.
m_pMainWn
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????29160??2005-10-19?15:33??3DSLoader\3DSLoader.aps
?????文件???????2407??2005-10-19?15:33??3DSLoader\3DSLoader.clw
?????文件???????4446??2005-10-19?15:33??3DSLoader\3DSLoader.cpp
?????文件???????5135??2005-10-19?15:33??3DSLoader\3DSLoader.dsp
?????文件????????543??2005-10-19?15:33??3DSLoader\3DSLoader.dsw
?????文件???????1439??2005-10-19?15:33??3DSLoader\3DSLoader.h
?????文件?????132096??2005-10-19?15:33??3DSLoader\3DSLoader.ncb
?????文件??????51712??2005-10-19?15:33??3DSLoader\3DSLoader.opt
?????文件???????2872??2005-10-19?15:33??3DSLoader\3DSLoader.plg
?????文件??????11691??2005-10-19?15:33??3DSLoader\3DSLoader.rc
?????文件???????2119??2005-10-19?15:33??3DSLoader\3DSLoaderDoc.cpp
?????文件???????1578??2005-10-19?15:33??3DSLoader\3DSLoaderDoc.h
?????文件??????13772??2005-10-19?15:33??3DSLoader\3DSLoaderView.cpp
?????文件???????3250??2005-10-19?15:33??3DSLoader\3DSLoaderView.h
?????文件?????447747??2005-10-19?15:33??3DSLoader\3DSModels\A3DPLNT1.3DS
?????文件??????38047??2005-10-19?15:33??3DSLoader\3DSModels\DC10.3DS
?????文件???????5882??2005-10-19?15:33??3DSLoader\3DSModels\DC10.GIF
?????文件??????43052??2005-10-19?15:33??3DSLoader\3DSModels\F16.3DS
?????文件???????5146??2005-10-19?15:33??3DSLoader\3DSModels\F16.GIF
?????文件?????159788??2005-10-19?15:33??3DSLoader\3DSModels\PLNTDRT.TIF
?????文件?????180256??2005-10-19?15:33??3DSLoader\3DSModels\PLNTLFS.TIF
?????文件??????12800??2005-10-19?15:33??3DSLoader\3DSModels\Thumbs.db
?????文件??????15208??2005-10-19?15:33??3DSLoader\3dsReader.cpp
?????文件???????2028??2005-10-19?15:33??3DSLoader\3dsReader.h
?????文件???????1123??2005-10-19?15:33??3DSLoader\basicRead.h
?????文件???????4246??2005-10-19?15:33??3DSLoader\glStructures.h
?????文件???????2510??2005-10-19?15:33??3DSLoader\MainFrm.cpp
?????文件???????1581??2005-10-19?15:33??3DSLoader\MainFrm.h
?????文件???????4398??2005-10-19?15:33??3DSLoader\ReadMe.txt
?????文件??????40960??2005-10-19?15:33??3DSLoader\Release\3DSLoader.exe
............此處省略19個文件信息
- 上一篇:遺傳算法工具箱gatool
- 下一篇:modelsim 6.2b破解包
評論
共有 條評論