资源简介

《DirectX游戏开发终极指南》随书源码

资源截图

代码片段和文件信息

/*
   Demo Name:  Blank Window
      Author:  Allen Sherrod
     Chapter:  Ch 1
*/


#include

#pragma comment(lib “d3d9.lib“)
#pragma comment(lib “d3dx9.lib“)

#define WINDOW_CLASS “UGPDX“
#define WINDOW_NAME  “Blank D3D Window“


// Function Prototypes...
bool InitializeD3D(HWND hWnd bool fullscreen);
void RenderScene();
void Shutdown();


// Direct3D object and device.
LPDIRECT3D9 g_D3D = NULL;
LPDIRECT3DDEVICE9 g_D3DDevice = NULL;


LRESULT WINAPI MsgProc(HWND hWnd UINT msg WPARAM wParam LPARAM lParam)
{
   switch(msg)
      {
         case WM_DESTROY:
            PostQuitMessage(0);
            return 0;
            break;

         case WM_KEYUP:
            if(wParam == VK_ESCAPE) PostQuitMessage(0);
            break;
      }

   return DefWindowProc(hWnd msg wParam lParam);
}


int WINAPI WinMain(HINSTANCE hInst HINSTANCE prevhInst LPSTR cmdLine int show)
{
   // Register the window class
   WNDCLASSEX wc = { 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       6148  2006-01-29 04:45  chapter12\GameProject11\.DS_Store

     文件      10240  2005-11-02 04:23  chapter12\GameProject11\GameProject1.suo

     文件       9728  2006-01-29 03:28  chapter12\GameProject11\GameProject10.suo

     文件       1443  2006-01-30 09:05  chapter12\GameProject11\GameProject11.sln

     文件      10240  2006-02-07 19:53  chapter12\GameProject11\GameProject11.suo

     文件       3451  2006-02-07 19:52  chapter12\GameProject11\GameProject11.vcproj

     文件       9728  2005-11-02 22:52  chapter12\GameProject11\GameProject2.suo

     文件      10240  2005-11-03 20:24  chapter12\GameProject11\GameProject3.suo

     文件      10240  2005-11-06 19:31  chapter12\GameProject11\GameProject4.suo

     文件       9728  2005-11-07 03:20  chapter12\GameProject11\GameProject5.suo

     文件       9728  2005-11-07 03:57  chapter12\GameProject11\GameProject6.suo

     文件      13312  2005-11-18 03:40  chapter12\GameProject11\GameProject7.suo

     文件      10240  2005-12-16 06:48  chapter12\GameProject11\GameProject8.suo

     文件    1717802  2006-02-07 19:52  chapter12\GameProject11\lib\StrandedEngine.lib

     文件      16055  2006-02-07 00:25  chapter12\GameProject11\main.cpp

     文件       1334  2006-02-07 01:25  chapter12\GameProject11\main.h

     文件     786476  2006-02-07 01:20  chapter12\GameProject11\maps\level1\ground.tga

     文件        103  2006-02-07 00:26  chapter12\GameProject11\maps\level1\level1.lvl

     文件       3393  2006-02-07 01:16  chapter12\GameProject11\maps\level1\level1.ms3d

     文件       5270  2006-02-07 01:17  chapter12\GameProject11\maps\level1\level1.x

     文件       3662  2006-02-07 00:53  chapter12\GameProject11\maps\skybox.ms3d

     文件       4379  2006-02-07 01:24  chapter12\GameProject11\maps\skybox.x

     文件     227613  2005-10-31 05:42  chapter12\GameProject11\maps\skyDay_back.jpg

     文件     237554  2005-10-31 05:42  chapter12\GameProject11\maps\skyDay_front.jpg

     文件     213277  2005-10-31 05:42  chapter12\GameProject11\maps\skyDay_left.jpg

     文件     192270  2005-10-31 05:41  chapter12\GameProject11\maps\skyDay_right.jpg

     文件     148434  2005-10-31 05:41  chapter12\GameProject11\maps\skyDay_top.jpg

     文件      88950  2005-11-01 04:17  chapter12\GameProject11\maps\sky_dust_back.jpg

     文件      91146  2005-11-01 04:16  chapter12\GameProject11\maps\sky_dust_bottom.jpg

     文件     101641  2005-11-01 04:17  chapter12\GameProject11\maps\sky_dust_front.jpg

............此处省略1169个文件信息

评论

共有 条评论