91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.97MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-30
  • 語言: 其他
  • 標簽: OpenGL??飛行游戲??

資源簡介

基于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個文件信息

評論

共有 條評論