资源简介
本程序实现的是绘制一个单位立方体正平行投影图的程序,可以画出变换后的图形。运行环境为vc++6.0.内附有可执行文件和所有源代码。

代码片段和文件信息
// CGframework.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “CGframework.h“
#include “MainFrm.h“
#include “CGframeworkDoc.h“
#include “CGframeworkView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
CRuntimeClassList g_RuntimeClassList;
BOOL CGFRegisterController( CRuntimeClass* pControllerClass )
{
// 检查是否有重复项,有则直接返回
for( CRuntimeClassList::iterator it = g_RuntimeClassList.begin(); it != g_RuntimeClassList.end(); it++ )
{
if( strcmp( pControllerClass->m_lpszClassName (*it)->m_lpszClassName ) == 0 )
return FALSE;
}
g_RuntimeClassList.push_back( pControllerClass );
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CCGframeworkApp
BEGIN_MESSAGE_MAP(CCGframeworkApp CWinApp)
//{{AFX_MSG_MAP(CCGframeworkApp)
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()
/////////////////////////////////////////////////////////////////////////////
// CCGframeworkApp construction
CCGframeworkApp::CCGframeworkApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CCGframeworkApp object
CCGframeworkApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CCGframeworkApp initialization
BOOL CCGframeworkApp::InitInstance()
{
// 初始化控制器列表
CGFInit();
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(CCGframeworkDoc)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 44048 2010-05-30 11:20 程序\CGfr
文件 2411 2010-05-30 11:42 程序\CGfr
文件 4768 2006-02-22 17:18 程序\CGfr
文件 5684 2006-02-22 17:18 程序\CGfr
文件 545 2006-02-22 17:18 程序\CGfr
文件 40960 2010-05-30 21:30 程序\CGfr
文件 1649 2006-02-22 17:19 程序\CGfr
文件 386048 2010-05-30 21:37 程序\CGfr
文件 60928 2010-05-30 21:37 程序\CGfr
文件 897 2010-05-30 21:30 程序\CGfr
文件 11267 2010-05-30 11:46 程序\CGfr
文件 1842 2006-02-22 17:25 程序\CGfr
文件 1530 2006-02-22 17:25 程序\CGfr
文件 5870 2006-02-22 17:25 程序\CGfr
文件 2470 2006-02-22 17:25 程序\CGfr
文件 3345 2006-02-22 17:25 程序\Controllerba
文件 2619 2006-02-22 17:25 程序\Controllerba
文件 2257 2006-02-22 17:25 程序\DlgSelectController.cpp
文件 1415 2006-02-22 17:25 程序\DlgSelectController.h
文件 16645 2010-05-30 21:08 程序\Ex4.cpp
文件 2403 2006-02-22 17:26 程序\Ex4.h
文件 242 2006-02-22 17:26 程序\Init.cpp
文件 2553 2006-02-22 17:26 程序\MainFrm.cpp
文件 1581 2006-02-22 17:26 程序\MainFrm.h
文件 4072 2006-02-22 17:26 程序\MyController.cpp
文件 1143 2006-02-22 17:26 程序\MyController.h
文件 4431 2006-02-22 17:26 程序\ReadMe.txt
文件 40960 2010-05-30 21:30 程序\Release\CGfr
文件 19976 2010-05-30 10:48 程序\Release\CGfr
文件 5682924 2010-05-30 10:48 程序\Release\CGfr
............此处省略27个文件信息
- 上一篇:DirectX修复工具V3.8增强版
- 下一篇:c++员工管理系统
相关资源
- 安卓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实现建筑物虚拟漫游
评论
共有 条评论