资源简介
可执行文件 实现 立方体 正四面体绘制与贴图 显示在不同视点下 的观测结果

代码片段和文件信息
// Cube.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “Cube.h“
#include “MainFrm.h“
#include “CubeDoc.h“
#include “CubeView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCubeApp
BEGIN_MESSAGE_MAP(CCubeApp CWinApp)
//{{AFX_MSG_MAP(CCubeApp)
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()
/////////////////////////////////////////////////////////////////////////////
// CCubeApp construction
CCubeApp::CCubeApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CCubeApp object
CCubeApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CCubeApp initialization
BOOL CCubeApp::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(CCubeDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CCubeView));
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_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return TRUE;
}
/////////////////////////
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3128 2011-05-24 11:22 Cube2\004.bmp
文件 12344 2011-05-24 13:17 Cube2\005.bmp
文件 49208 2011-05-24 13:44 Cube2\006.bmp
文件 49208 2011-05-24 13:52 Cube2\0071.bmp
文件 49208 2011-05-24 14:05 Cube2\0081.bmp
文件 49208 2011-05-24 14:09 Cube2\0091.bmp
文件 49208 2011-05-24 14:11 Cube2\0101.bmp
文件 49208 2011-05-24 14:13 Cube2\0111.bmp
文件 49208 2011-05-24 14:15 Cube2\0121.bmp
文件 28412 2011-05-24 11:46 Cube2\Cube.aps
文件 2315 2011-05-24 14:48 Cube2\Cube.clw
文件 4173 2011-04-06 19:01 Cube2\Cube.cpp
文件 4513 2011-04-06 19:01 Cube2\Cube.dsp
文件 516 2011-04-06 19:01 Cube2\Cube.dsw
文件 1334 2011-04-06 19:01 Cube2\Cube.h
文件 132096 2011-05-24 14:48 Cube2\Cube.ncb
文件 49664 2011-05-24 14:48 Cube2\Cube.opt
文件 1207 2011-05-24 14:46 Cube2\Cube.plg
文件 11679 2011-05-21 20:43 Cube2\Cube.rc
文件 1702 2011-04-06 19:01 Cube2\CubeDoc.cpp
文件 1453 2011-04-06 19:01 Cube2\CubeDoc.h
文件 25933 2011-05-24 14:46 Cube2\CubeView.cpp
文件 3197 2011-05-24 14:43 Cube2\CubeView.h
文件 3128 2011-05-24 11:22 Cube2\Debug\004.bmp
文件 12344 2011-05-24 13:17 Cube2\Debug\005.bmp
文件 49208 2011-05-24 13:44 Cube2\Debug\006.bmp
文件 49208 2011-05-24 13:52 Cube2\Debug\0071.bmp
文件 49208 2011-05-24 14:05 Cube2\Debug\0081.bmp
文件 49208 2011-05-24 14:09 Cube2\Debug\0091.bmp
文件 49208 2011-05-24 14:11 Cube2\Debug\0101.bmp
............此处省略33个文件信息
相关资源
- OpenGL参考手册
- Qt Creator opengl实现四元数鼠标控制轨迹
- OpenGL文档,api大全,可直接查询函数
- opengl轮廓字体源代码
- MFC读三维模型obj文件
- 利用OpenGL写毛笔字算法
- MFC中OpenGL面和体的绘制以及动画效果
- 基于OPENGL的光线跟踪源代码368758
- VC 实现三维旋转(源码)
- 如何实现bmp位图透明贴图
- 自编用openGL实现3D分形树,分形山
- OpenGL球形贴图自旋程序
- OpenGL导入贴图的Texture类
- 计算机图形学(openGL)代码
- 用OpenGL开发的机械臂运动仿真程序(
- OpenGL-3D坦克模拟
- OPENGL实现世界上最小的3D游戏
- VS2012OpenGL配置所需要的全部libdllh文件
- 基于OpenGL的仿蝗虫机器人三维动态仿
- 图形学 - OpenGL实现3种三维茶壶显示源
- opengl程序-会跳舞的骷髅
- opengl实现三维网格光顺Laplacian算法
- opengl——爆炸
- OpenGL三维地形建模
- opengl游戏编程徐明亮版(含源码)
- 用OPENGL画的一个简单的直升飞机
- opengl完美天空盒
- 3D绘图程序设计:使用Direct3D 10/9和Ope
- OpenGL绘制可运动自行车源程序.zip
- OpenGL实现飘动效果
评论
共有 条评论