资源简介
mfc中利用opengl导入3ds文件,可以自由选择3DS文件

代码片段和文件信息
// 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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 29252 2013-05-20 12:04 3DSLoader\3DSLoader.aps
文件 2407 2009-07-27 16:31 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
文件 254976 2014-05-04 18:56 3DSLoader\3DSLoader.ncb
文件 240640 2014-05-04 18:56 3DSLoader\3DSLoader.opt
文件 2548 2014-05-04 18:46 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
文件 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
文件 147574 2014-05-04 18:46 3DSLoader\Debug\3DSLoader.exe
文件 396824 2014-05-04 18:46 3DSLoader\Debug\3DSLoader.ilk
文件 24611 2014-05-04 18:46 3DSLoader\Debug\3DSLoader.obj
文件 402432 2014-04-22 10:53 3DSLoader\Debug\3DSLoader.pdb
文件 7388 2009-07-27 16:31 3DSLoader\Debug\3DSLoader.res
文件 16320 2014-05-04 18:46 3DSLoader\Debug\3DSLoaderDoc.obj
............此处省略32个文件信息
相关资源
- 安卓c语言开发SDL2+opengles
- 交互式计算机图形学 第六版 OpenGL源代
- VC++基于OpenGL模拟的一个3维空间模型
- opengl绘制汽车.cpp
- opengl实现水流效果sph
- opengl源代码,全是精华!
- OpenGL迷宫山东大学图形学实验三
- opengl的立方体消隐算法
- vc++ opengl代码爆炸
- 我见过最漂亮的CS仿真程序openGL和C+
- 广东某工业大学的openGL课程设计
- 使用OpenGL实现多个小球在密闭空间内
- 利用openGL和C++实现光线跟踪绘图的完
- OpenGl C++太阳系小行星运行系统 可切换
- vc++和OpenGL实现三维地形实时动态显示
- C++实现利用OpenGL实现三维绘图
- 太阳、地球、月亮之间的运动图Open
- MFC 单文档 实现opengl 三维旋转 缩放
- OPENGL的烟花程序(代码)
- MFC+OpenGL三维建模与动画显示
- 基于opengl粒子系统实现喷泉的模拟
- 一个基于openGL的太阳系模型,太阳地
- vc6.0+opengl纯色五角星填充
- vc6.0+opengl动态绘制五角星
- NeHe_OpenGL教程完整版 里面有地址可以
- OpenGL简单——实现立方体贴上不同纹
- MFC实现dem的读取与现实
- VC++ OpenGL三维地形漫游
- OpenGL实现三维地形实时动态显示
- VC++中Opengl实现建筑物虚拟漫游
评论
共有 条评论