基于VC和OpenGL的三维飞行游戏源代码,包含了图形学多种算法。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 39983 2006-04-24 00:53 3D OPENGL 飞行游戏源代码TERRAIN3DTEST123.ms3d
文件 364724 2002-12-24 11:58 3D OPENGL 飞行游戏源代码TERRAIN3DTESTAEREO.MS3D
文件 3482 2006-04-23 23:25 3D OPENGL 飞行游戏源代码TERRAIN3DTESTd.ms3d
文件 460892 2006-07-27 17:10 3D OPENGL 飞行游戏源代码TERRAIN3DTESTsmd.bmp
文件 1838 2006-04-23 22:58 3D OPENGL 飞行游戏源代码TERRAIN3DTESTs.ms3d
文件 12794 2002-12-24 11:58 3D OPENGL 飞行游戏源代码TERRAIN3DTESTGLEXT.H
文件 17496 2006-04-24 16:12 3D OPENGL 飞行游戏源代码TERRAIN3DTESTks.bmp
文件 2598 2006-04-23 23:05 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMAINFRM.CPP
文件 1581 2002-12-24 11:58 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMAINFRM.H
文件 66614 2002-12-24 11:58 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMARSH2.BMP
文件 5817 2002-12-24 11:58 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMILKSHAPEMODEL.CPP
文件 26744 2002-12-24 11:58 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMISSILE.MS3D
文件 4805 2006-04-18 18:21 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMODEL.CPP
文件 1811 2002-12-24 11:58 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMODEL.H
文件 39306 2006-04-23 14:47 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMODEL.ms3d
文件 38012 2006-04-21 15:26 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMODEL1.MS3D
文件 4476 2002-12-24 11:58 3D OPENGL 飞行游戏源代码TERRAIN3DTESTREADME.TXT
文件 385100 1998-06-17 00:00 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMSVCRTD.DLL
文件 17496 2006-04-24 16:21 3D OPENGL 飞行游戏源代码TERRAIN3DTESTsm.bmp
文件 798773 1998-06-17 00:00 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMFCO42D.DLL
文件 3219 2006-04-24 18:25 3D OPENGL 飞行游戏源代码TERRAIN3DTESTSplash.cpp
文件 1159 2006-04-23 23:05 3D OPENGL 飞行游戏源代码TERRAIN3DTESTSplash.h
文件 84598 2006-04-24 18:22 3D OPENGL 飞行游戏源代码TERRAIN3DTESTSplsh16.bmp
文件 301 2006-04-24 18:29 3D OPENGL 飞行游戏源代码TERRAIN3DTESTSTDAFX.CPP
文件 17496 2006-04-24 16:28 3D OPENGL 飞行游戏源代码TERRAIN3DTEST c.bmp
文件 94285 1998-06-17 00:00 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMSVCIRTD.DLL
文件 2409 2006-11-13 08:57 3D OPENGL 飞行游戏源代码TERRAIN3DTESTTERRAIN3DTEST.CLW
文件 1314 2006-04-24 18:29 3D OPENGL 飞行游戏源代码TERRAIN3DTESTTerrain3DTest.dep
文件 551 2002-12-24 11:58 3D OPENGL 飞行游戏源代码TERRAIN3DTESTTERRAIN3DTEST.DSW
文件 929844 1998-06-17 00:00 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMFC42D.DLL
............此处省略52个文件信息
// 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 飞行游戏源代码TERRAIN3DTEST123.ms3d
文件 364724 2002-12-24 11:58 3D OPENGL 飞行游戏源代码TERRAIN3DTESTAEREO.MS3D
文件 3482 2006-04-23 23:25 3D OPENGL 飞行游戏源代码TERRAIN3DTESTd.ms3d
文件 460892 2006-07-27 17:10 3D OPENGL 飞行游戏源代码TERRAIN3DTESTsmd.bmp
文件 1838 2006-04-23 22:58 3D OPENGL 飞行游戏源代码TERRAIN3DTESTs.ms3d
文件 12794 2002-12-24 11:58 3D OPENGL 飞行游戏源代码TERRAIN3DTESTGLEXT.H
文件 17496 2006-04-24 16:12 3D OPENGL 飞行游戏源代码TERRAIN3DTESTks.bmp
文件 2598 2006-04-23 23:05 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMAINFRM.CPP
文件 1581 2002-12-24 11:58 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMAINFRM.H
文件 66614 2002-12-24 11:58 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMARSH2.BMP
文件 5817 2002-12-24 11:58 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMILKSHAPEMODEL.CPP
文件 26744 2002-12-24 11:58 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMISSILE.MS3D
文件 4805 2006-04-18 18:21 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMODEL.CPP
文件 1811 2002-12-24 11:58 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMODEL.H
文件 39306 2006-04-23 14:47 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMODEL.ms3d
文件 38012 2006-04-21 15:26 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMODEL1.MS3D
文件 4476 2002-12-24 11:58 3D OPENGL 飞行游戏源代码TERRAIN3DTESTREADME.TXT
文件 385100 1998-06-17 00:00 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMSVCRTD.DLL
文件 17496 2006-04-24 16:21 3D OPENGL 飞行游戏源代码TERRAIN3DTESTsm.bmp
文件 798773 1998-06-17 00:00 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMFCO42D.DLL
文件 3219 2006-04-24 18:25 3D OPENGL 飞行游戏源代码TERRAIN3DTESTSplash.cpp
文件 1159 2006-04-23 23:05 3D OPENGL 飞行游戏源代码TERRAIN3DTESTSplash.h
文件 84598 2006-04-24 18:22 3D OPENGL 飞行游戏源代码TERRAIN3DTESTSplsh16.bmp
文件 301 2006-04-24 18:29 3D OPENGL 飞行游戏源代码TERRAIN3DTESTSTDAFX.CPP
文件 17496 2006-04-24 16:28 3D OPENGL 飞行游戏源代码TERRAIN3DTEST c.bmp
文件 94285 1998-06-17 00:00 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMSVCIRTD.DLL
文件 2409 2006-11-13 08:57 3D OPENGL 飞行游戏源代码TERRAIN3DTESTTERRAIN3DTEST.CLW
文件 1314 2006-04-24 18:29 3D OPENGL 飞行游戏源代码TERRAIN3DTESTTerrain3DTest.dep
文件 551 2002-12-24 11:58 3D OPENGL 飞行游戏源代码TERRAIN3DTESTTERRAIN3DTEST.DSW
文件 929844 1998-06-17 00:00 3D OPENGL 飞行游戏源代码TERRAIN3DTESTMFC42D.DLL
............此处省略52个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)