资源简介
计算机图形学作业,利用opengl实现了一个太阳系,共有八大行星,有纹理贴图,进行了视角切换比较真实。

代码片段和文件信息
// MainFrm.cpp : implementation of the CMainframe class
//
#include “stdafx.h“
#include “Socar.h“
#include “MainFrm.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMainframe
IMPLEMENT_DYNCREATE(CMainframe CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code !
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static UINT indicators[] =
{
ID_SEPARATOR // status line indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
// CMainframe construction/destruction
CMainframe::CMainframe()
{
// TODO: add member initialization code here
}
CMainframe::~CMainframe()
{
}
int CMainframe::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CframeWnd::OnCreate(lpCreateStruct) == -1)
return -1;
Modifystyle(WS_BORDER|WS_SYSMENU0);
return 0;
}
BOOL CMainframe::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CframeWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CMainframe diagnostics
#ifdef _DEBUG
void CMainframe::AssertValid() const
{
CframeWnd::AssertValid();
}
void CMainframe::Dump(CDumpContext& dc) const
{
CframeWnd::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMainframe message handlers
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 18712 2008-12-10 11:31 Socar\Debug\MainFrm.obj
文件 0 2008-12-04 17:00 Socar\Debug\MainFrm.sbr
文件 3884032 2008-12-04 17:04 Socar\Debug\Socar.bsc
文件 1376346 2008-12-10 20:43 Socar\Debug\Socar.exe
文件 772692 2008-12-10 20:43 Socar\Debug\Socar.ilk
文件 23119 2008-12-04 22:11 Socar\Debug\Socar.obj
文件 5497884 2008-12-04 22:11 Socar\Debug\Socar.pch
文件 623616 2008-12-10 20:43 Socar\Debug\Socar.pdb
文件 1029424 2008-12-10 11:31 Socar\Debug\Socar.res
文件 0 2008-12-04 17:00 Socar\Debug\Socar.sbr
文件 14629 2008-12-04 22:11 Socar\Debug\SocarDoc.obj
文件 0 2008-12-04 17:00 Socar\Debug\SocarDoc.sbr
文件 53525 2008-12-10 20:43 Socar\Debug\SocarView.obj
文件 0 2008-12-04 17:04 Socar\Debug\SocarView.sbr
文件 105593 2008-12-04 22:11 Socar\Debug\StdAfx.obj
文件 1374952 2008-12-04 17:00 Socar\Debug\StdAfx.sbr
文件 238592 2009-11-19 20:22 Socar\Debug\vc60.idb
文件 372736 2008-12-10 20:43 Socar\Debug\vc60.pdb
文件 1847 2008-12-10 11:31 Socar\MainFrm.cpp
文件 1581 2008-12-01 19:03 Socar\MainFrm.h
文件 4287 2008-12-01 19:03 Socar\ReadMe.txt
文件 515576 2008-12-03 14:36 Socar\res\earth.bmp
文件 43256 2008-12-03 14:36 Socar\res\Haixing.bmp
文件 43256 2008-12-03 14:36 Socar\res\Huoxing.bmp
文件 766 2008-12-10 11:31 Socar\res\icon1.ico
文件 766 2008-12-10 11:31 Socar\res\icon2.ico
文件 766 2008-12-10 11:31 Socar\res\icon3.ico
文件 43256 2008-12-03 14:36 Socar\res\Jinxing.bmp
文件 43256 2007-08-18 01:50 Socar\res\mars.bmp
文件 13622 2008-12-05 17:36 Socar\res\Moon.bmp
............此处省略33个文件信息
相关资源
- OpenGL参考手册
- Windows异步套接字网络编程
- VC 获得文件属性 获取文件的创建时
- 基于MVC模式的会员管理系统
- silicon lab公司的收音IC SI47XX全套开发工
- 读者写者问题(读者优先,写者优先
- MFC程序-碰撞的小球
- vc 柱形图 CBarChart
- 用vc 写的导线测量,针对刚学测绘的
- 用VC 编写的仿QQ聊天室程序源代码
- 栅栏填充算法源码(VC)
- Qt Creator opengl实现四元数鼠标控制轨迹
- 简单的房屋租赁系统
- .net网站服装销售系统(MVC)
- OpenGL文档,api大全,可直接查询函数
- opengl轮廓字体源代码
-
ob
jectARX给Auto CAD加工具条 - MFC读三维模型obj文件
- blowfish的vc2008工程.rar
- 画图程序MFC/VC/VC CRectTracker 串行化
- capon波束形成算法-VC实现
- 读取串口数据并画实时曲线的VC 程序
- VC 游戏编程—附源代码
- IpHlpApi.h&IpHlpApi.lib
- 利用OpenGL写毛笔字算法
- vc 6.0开发的流程图编辑器
- MFC中OpenGL面和体的绘制以及动画效果
- VC 天空盒(skyBox)实现(附源代码)
- c MFC 画多边形
- keil vcom windows 7 64bit 驱动
评论
共有 条评论