资源简介
基于VC和OpenGL的三维飞行游戏源代码,包含了图形学多种算法。

代码片段和文件信息
// CG: This file was added by the Splash Screen component.
// Splash.cpp : implementation file
//
#include “stdafx.h“ // e. g. stdafx.h
#include “resource.h“ // e.g. resource.h
#include “Splash.h“ // e.g. splash.h
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char baseD_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// Splash Screen class
BOOL CSplashWnd::c_bShowSplashWnd;
CSplashWnd* CSplashWnd::c_pSplashWnd;
CSplashWnd::CSplashWnd()
{
}
CSplashWnd::~CSplashWnd()
{
// Clear the static window pointer.
ASSERT(c_pSplashWnd == this);
c_pSplashWnd = NULL;
}
BEGIN_MESSAGE_MAP(CSplashWnd CWnd)
//{{AFX_MSG_MAP(CSplashWnd)
ON_WM_CREATE()
ON_WM_PAINT()
ON_WM_TIMER()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
void CSplashWnd::EnableSplashScreen(BOOL bEnable /*= TRUE*/)
{
c_bShowSplashWnd = bEnable;
}
void CSplashWnd::ShowSplashScreen(CWnd* pParentWnd /*= NULL*/)
{
if (!c_bShowSplashWnd || c_pSplashWnd != NULL)
return;
// Allocate a new splash screen and create the window.
c_pSplashWnd = new CSplashWnd;
if (!c_pSplashWnd->Create(pParentWnd))
delete c_pSplashWnd;
else
c_pSplashWnd->UpdateWindow();
}
BOOL CSplashWnd::PreTranslateAppMessage(MSG* pMsg)
{
if (c_pSplashWnd == NULL)
return FALSE;
// If we get a keyboard or mouse message hide the splash screen.
if (pMsg->message == WM_KEYDOWN ||
pMsg->message == WM_SYSKEYDOWN ||
pMsg->message == WM_LBUTTONDOWN ||
pMsg->message == WM_RBUTTONDOWN ||
pMsg->message == WM_MBUTTONDOWN ||
pMsg->message == WM_NCLBUTTONDOWN ||
pMsg->message == WM_NCRBUTTONDOWN ||
pMsg->message == WM_NCMBUTTONDOWN)
{
c_pSplashWnd->HideSplashScreen();
return TRUE; // message handled here
}
return FALSE; // message not handled
}
BOOL CSplashWnd::Create(CWnd* pParentWnd /*= NULL*/)
{
if (!m_bitmap.LoadBitmap(IDB_SPLASH))
return FALSE;
return FALSE;
/* BITMAP bm;
m_bitmap.GetBitmap(&bm);
return CreateEx(0
AfxRegisterWndClass(0 AfxGetApp()->LoadStandardCursor(IDC_ARROW))
NULL WS_POPUP | WS_VISIBLE 0 0 bm.bmWidth bm.bmHeight pParentWnd->GetSafeHwnd() NULL);*/
}
void CSplashWnd::HideSplashScreen()
{
// Destroy the window and update the mainframe.
DestroyWindow();
AfxGetMainWnd()->UpdateWindow();
}
void CSplashWnd::PostNcDestroy()
{
// Free the C++ class.
delete this;
}
int CSplashWnd::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CWnd::OnCreate(lpCreateStruct) == -1)
return -1;
// Center the window.
CenterWindow();
// Set a timer to destroy the splash screen.
SetTimer(1 750 NULL);
return 0;
}
void CSplashWnd::OnPaint()
{
CPaintDC dc(this);
CDC dcImage;
if (!dcImage.CreateCompatibleDC(&dc))
return;
BITMAP bm;
m_bitmap.GetBitmap(&bm);
// Paint the image.
CBitmap* pOldBitmap = dcImage.Selectobject(&m_bitmap);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 39983 2006-04-24 00:53 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\123.ms3d
文件 364724 2002-12-24 11:58 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\AEREO.MS3D
文件 3482 2006-04-23 23:25 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\bd.ms3d
文件 460892 2006-07-27 17:10 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\smd.bmp
文件 1838 2006-04-23 22:58 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\bs.ms3d
文件 12794 2002-12-24 11:58 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\GLEXT.H
文件 17496 2006-04-24 16:12 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\ks.bmp
文件 2598 2006-04-23 23:05 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\MAINFRM.CPP
文件 1581 2002-12-24 11:58 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\MAINFRM.H
文件 66614 2002-12-24 11:58 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\MARSH2.BMP
文件 5817 2002-12-24 11:58 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\MILKSHAPEMODEL.CPP
文件 26744 2002-12-24 11:58 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\MISSILE.MS3D
文件 4805 2006-04-18 18:21 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\MODEL.CPP
文件 1811 2002-12-24 11:58 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\MODEL.H
文件 39306 2006-04-23 14:47 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\MODEL.ms3d
文件 38012 2006-04-21 15:26 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\MODEL1.MS3D
文件 4476 2002-12-24 11:58 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\README.TXT
文件 385100 1998-06-17 00:00 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\MSVCRTD.DLL
文件 17496 2006-04-24 16:21 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\sm.bmp
文件 798773 1998-06-17 00:00 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\MFCO42D.DLL
文件 3219 2006-04-24 18:25 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\Splash.cpp
文件 1159 2006-04-23 23:05 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\Splash.h
文件 84598 2006-04-24 18:22 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\Splsh16.bmp
文件 301 2006-04-24 18:29 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\STDAFX.CPP
文件 17496 2006-04-24 16:28 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\tc.bmp
文件 94285 1998-06-17 00:00 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\MSVCIRTD.DLL
文件 2409 2006-11-13 08:57 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\TERRAIN3DTEST.CLW
文件 1314 2006-04-24 18:29 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\Terrain3DTest.dep
文件 551 2002-12-24 11:58 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\TERRAIN3DTEST.DSW
文件 929844 1998-06-17 00:00 3D OPENGL 飞行游戏源代码\TERRAIN3DTEST\MFC42D.DLL
............此处省略52个文件信息
相关资源
- OpenGL参考手册
- Qt Creator opengl实现四元数鼠标控制轨迹
- OpenGL文档,api大全,可直接查询函数
- opengl轮廓字体源代码
- MFC读三维模型obj文件
- 利用OpenGL写毛笔字算法
- MFC中OpenGL面和体的绘制以及动画效果
- 基于OPENGL的光线跟踪源代码368758
- VC 实现三维旋转(源码)
- 自编用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实现飘动效果
- opengl室内场景的绘制,包括碰撞检测
评论
共有 条评论