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

  • 大小: 20.08MB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發布日期: 2023-07-03
  • 語言: 其他
  • 標簽: .Direct3D9??

資源簡介

Direct3D9 DirectX Introduction.To.Direct3D9中文版(翁云兵版) 含代碼

資源截圖

代碼片段和文件信息

//////////////////////////////////////////////////////////////////////////////////////////////////
//?
//?File:?d3dinit.cpp
//?
//?Author:?Frank?Luna?(C)?All?Rights?Reserved
//
//?System:?AMD?Athlon?1800+?XP?512?DDR?Geforce?3?Windows?XP?MSVC++?7.0?
//
//?Desc:?Demonstrates?how?to?initialize?Direct3D?how?to?use?the?book‘s?framework
//???????functions?and?how?to?clear?the?screen?to?black.??Note?that?the?Direct3D
//???????initialization?code?is?in?the?d3dUtility.h/.cpp?files.
//??????????
//////////////////////////////////////////////////////////////////////////////////////////////////

#include?“d3dUtility.h“

//
//?Globals
//

IDirect3DDevice9*?Device?=?0;?

//
//?framework?Functions
//

bool?Setup()
{
//?Nothing?to?setup?in?this?sample.

return?true;
}

void?Cleanup()
{
//?Nothing?to?cleanup?in?this?sample.
}

bool?Display(float?timeDelta)
{
if(?Device?)?//?Only?use?Device?methods?if?we?have?a?valid?device.
{
//?Instruct?the?device?to?set?each?pixel?on?the?back?buffer?black?-
//?D3DCLEAR_TARGET:?0x00000000?(black)?-?and?to?set?each?pixel?on
//?the?depth?buffer?to?a?value?of?1.0?-?D3DCLEAR_ZBUFFER:?1.0f.
Device->Clear(0?0?D3DCLEAR_TARGET?|?D3DCLEAR_ZBUFFER?0x000000ff?1.0f?0);
//Device->Clear(?0?NULL?D3DCLEAR_TARGET?D3DCOLOR_XRGB(00255)?1.0f?0?);

//?Begin?the?scene
if(?SUCCEEDED(?Device->BeginScene()?)?)
{
//?Rendering?of?scene?objects?can?happen?here
????
//?End?the?scene
Device->EndScene();
}

//?Swap?the?back?and?front?buffers.
Device->Present(0?0?0?0);
}
return?true;
}

//
//?WndProc
//
LRESULT?CALLBACK?d3d::WndProc(HWND?hwnd?UINT?msg?WPARAM?wParam?LPARAM?lParam)
{
static?float?lastTime?=?(float)timeGetTime();?
float?currTime??=?(float)timeGetTime();
float?timeDelta?=?(currTime?-?lastTime)*0.001f;
lastTime?=?currTime;

switch(?msg?)
{
case?WM_DESTROY:
::PostQuitMessage(0);
break;

case?WM_KEYDOWN:
if(?wParam?==?VK_ESCAPE?)
::DestroyWindow(hwnd);
break;
case?WM_PAINT:
Display(timeDelta);
ValidateRect(?hwnd?NULL?);
//return?0;
break;
}
return?::DefWindowProc(hwnd?msg?wParam?lParam);
}

//
//?WinMain
//
int?WINAPI?WinMain(HINSTANCE?hinstance
???HINSTANCE?prevInstance?
???PSTR?cmdLine
???int?showCmd)
{
if(!d3d::InitD3D(hinstance
640?480?true?D3DDEVTYPE_HAL?&Device))
{
::MessageBox(0?“InitD3D()?-?FAILED“?0?0);
return?0;
}

if(!Setup())
{
::MessageBox(0?“Setup()?-?FAILED“?0?0);
return?0;
}

d3d::EnterMsgLoop(?Display?);

Cleanup();

Device->Release();
//d3d::Release(Device);

return?0;
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????5949538??2006-06-21?12:16??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\3DGame.pdf

?????文件????5976550??2002-01-01?02:37??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\3DGame_.pdf

?????文件?????814080??2010-08-18?20:50??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\D3D9?Init.ncb

?????文件????????907??2005-09-17?08:20??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\D3D9?Init.sln

????..A..H.??????9728??2010-08-18?20:50??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\D3D9?Init.suo

?????文件???????3602??2009-12-30?21:13??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\D3D9?Init.vcproj

?????文件???????2696??2010-01-01?08:21??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\d3dInit.cpp

?????文件???????4537??2010-01-01?08:20??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\d3dUtility.cpp

?????文件???????1263??2003-03-08?10:16??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\d3dUtility.h

?????文件???????2841??2012-09-11?22:09??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\Debug\BuildLog.htm

?????文件?????131072??2012-09-11?22:09??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\Debug\D3D9?Init.exe

?????文件?????483596??2010-01-01?08:17??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\Debug\D3D9?Init.ilk

?????文件?????666624??2010-01-01?08:17??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\Debug\D3D9?Init.pdb

?????文件??????31031??2010-01-01?08:15??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\Debug\d3dInit.obj

?????文件??????31459??2010-01-01?08:17??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\Debug\d3dUtility.obj

?????文件?????527360??2010-01-01?08:17??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\Debug\vc70.idb

?????文件?????233472??2010-01-01?08:17??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\Debug\vc70.pdb

?????文件???????2680??2012-09-11?22:09??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\Release\BuildLog.htm

?????文件??????40960??2012-09-11?22:09??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\Release\D3D9?Init.exe

?????文件?????371712??2010-01-01?08:21??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\Release\D3D9?Init.pdb

?????文件??????26019??2010-01-01?08:21??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\Release\d3dInit.obj

?????文件??????25737??2010-01-01?08:20??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\Release\d3dUtility.obj

?????文件?????322560??2010-01-01?08:21??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\Release\vc70.idb

?????文件?????208896??2010-01-01?08:21??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?1\D3D9?Init\Release\vc70.pdb

?????文件???????5523??2002-08-08?12:44??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?10\D3DXCreateMeshFVF\brick0_.jpg

?????文件???????4860??2002-08-08?12:44??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?10\D3DXCreateMeshFVF\brick1_.jpg

?????文件??????14550??2002-10-09?18:25??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?10\D3DXCreateMeshFVF\checker_.jpg

?????文件???????5828??2003-03-08?18:51??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?10\D3DXCreateMeshFVF\d3dUtility.cpp

?????文件???????2530??2003-03-08?18:51??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?10\D3DXCreateMeshFVF\d3dUtility.h

?????文件??????12264??2010-08-04?16:32??Introduction.To.Direct3D9中文版(翁云兵版)\3DGame\Book?Code\Chapter?10\D3DXCreateMeshFVF\d3dxcreatemeshfvf.cpp

............此處省略251個文件信息

評論

共有 條評論

相關資源