资源简介
网上搜集的一个优秀的OBJ文件读取和显示程序,MFC操作界面,基于OpenGL的显示,运行时需要在安装OpenGL库,VS2010环境下可用。
提供多种显示方式,光照方式,MFC界面导入OBJ文件,显示效果很好~
代码片段和文件信息
// displaypoint.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “displaypoint.h“
#include “MainFrm.h“
#include “displaypointDoc.h“
#include “displaypointView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDisplaypointApp
BEGIN_MESSAGE_MAP(CDisplaypointApp CWinApp)
//{{AFX_MSG_MAP(CDisplaypointApp)
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()
/////////////////////////////////////////////////////////////////////////////
// CDisplaypointApp construction
CDisplaypointApp::CDisplaypointApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CDisplaypointApp object
CDisplaypointApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CDisplaypointApp initialization
BOOL CDisplaypointApp::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(CDisplaypointDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CDisplaypointView));
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 an
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4916 2013-07-17 23:50 displaypoint\Debug\cl.command.1.tlog
文件 33728 2013-07-17 23:50 displaypoint\Debug\CL.read.1.tlog
文件 3868 2013-07-17 23:50 displaypoint\Debug\CL.write.1.tlog
文件 130 2013-07-17 23:50 displaypoint\Debug\displaypoint.lastbuildstate
文件 3034 2013-07-17 23:50 displaypoint\Debug\displaypoint.log
文件 24576000 2013-07-17 23:50 displaypoint\Debug\displaypoint.pch
文件 0 2013-07-17 23:50 displaypoint\Debug\displaypoint.unsuccessfulbuild
文件 58212 2013-07-17 23:50 displaypoint\Debug\displaypointDoc.obj
文件 4348 2013-07-17 23:50 displaypoint\Debug\displaypointDoc.sbr
文件 33098 2013-07-17 23:50 displaypoint\Debug\MainFrm.obj
文件 4072 2013-07-17 23:50 displaypoint\Debug\MainFrm.sbr
文件 554540 2013-07-17 23:50 displaypoint\Debug\StdAfx.obj
文件 4133967 2013-07-17 23:50 displaypoint\Debug\StdAfx.sbr
文件 1035264 2013-07-17 23:50 displaypoint\Debug\vc100.idb
文件 2306048 2013-07-17 23:50 displaypoint\Debug\vc100.pdb
文件 29004 2007-05-17 19:37 displaypoint\displaypoint.aps
文件 2465 2007-05-18 15:18 displaypoint\displaypoint.clw
文件 4317 2006-10-21 19:09 displaypoint\displaypoint.cpp
文件 4743 2006-10-22 14:45 displaypoint\displaypoint.dsp
文件 547 2006-10-21 19:09 displaypoint\displaypoint.dsw
文件 1422 2006-10-21 19:09 displaypoint\displaypoint.h
文件 123904 2007-05-18 15:19 displaypoint\displaypoint.ncb
文件 463872 2007-05-18 15:19 displaypoint\displaypoint.opt
文件 1519 2007-05-18 15:13 displaypoint\displaypoint.plg
文件 11806 2006-10-26 18:15 displaypoint\displaypoint.rc
文件 27414528 2013-07-17 23:50 displaypoint\displaypoint.sdf
文件 890 2013-07-17 23:50 displaypoint\displaypoint.sln
..A..H. 11776 2013-07-17 23:50 displaypoint\displaypoint.suo
文件 8260 2013-07-17 23:50 displaypoint\displaypoint.vcxproj
文件 2553 2013-07-17 23:50 displaypoint\displaypoint.vcxproj.filters
............此处省略24个文件信息
- 上一篇:VC++2015,32位,64位组件运行库
- 下一篇:mfc实现滑动窗口的简单模拟
相关资源
- mfc实现滑动窗口的简单模拟
- 基于vs 2010 mfc实现对excel数据的读取,
- MFC动态加载和静态加载bmp类型图片
- 扫雷小游戏 完整源码
- 指针式仪表识别(MFC)
- Ply文件读取OpenGL显示
- 高斯投影正反算MFC
- 白塞尔大地主题解算MFC
- 基于MFC的OpenCV图像显示并标记ROI
- CEF:MFC 对话框 DemoVS2013
- MFC 音乐播放器傻 瓜教程
- MFC聊天室与文件传输
- MFC多语言界面切换
- 牛哥推荐很好的CMFCOutlookBar
- MSDN中文版下载261719
- OpenGL入门全套参考资料[C++]
- MFC写的QQ应用程序
- 进程/作业调度:时间片轮转调度算法
- MFC窗口打开ppt,可通过UDP控制。
- MFC教程.zip
- MFC课程设计:职工信息管理系统
- OpenCV和MFC的+界面程序+各种图像处理操
- 17个VC++与OPENGL写的游戏程序代码
- 深入浅出mfc侯捷 简体中文版
- Unity3D调用Native OpenGL渲染方式
-
MFC Media pla
yer控件制作的播放器 - MFC TAB control
- PictureControl
- 不用MFC写的小游戏
- mfc数据库图书管理系统
评论
共有 条评论