Advanced 3D Game Programming with DirectX - phần 5 pptx

Advanced 3D Game Programming with DirectX - phần 5 pptx

Advanced 3D Game Programming with DirectX - phần 5 pptx

... stored with bits 0-7 representing the values 2 0 -2 7 and bits 8-1 5 representing values 2 8 -2 15 . But the CPU in a big endian system stores same value the other way around with bits 0-7 representing ... main(int argc, char* argv[]) { // Sorry, I don't do cout. printf( " ;Advanced 3D Game Programming using DirectX 9.0\n" ); printf( &qu...
Ngày tải lên : 08/08/2014, 23:20
  • 71
  • 347
  • 0
Advanced 3D Game Programming with DirectX - phần 1 doc

Advanced 3D Game Programming with DirectX - phần 1 doc

... 1 Advanced 3D Game Programming with DirectX 9.0 by Peter Walsh ISBN: 155 6229682 Wordware Publishing © 2003 (52 5 pages) Designed for programmers who are new to graphics and game programming, ... 5 - 3D Math Foundations Chapter 6 - Artificial Intelligence Chapter 7 - UDP Networking Chapter 8 - Beginning Direct3D Chapter 9 - Adva...
Ngày tải lên : 08/08/2014, 23:20
  • 71
  • 523
  • 0
Advanced 3D Game Programming with DirectX - phần 2 doc

Advanced 3D Game Programming with DirectX - phần 2 doc

... rand()%639; y = rand()%479; // Get a random color for the pixel Color = D3DCOLOR_XRGB( rand()% 255 , rand()% 255 , rand()% 255 ); // Set the pixel at x,y to the color pData[ Pitch32*y+x]= Color; ... available r = m_pD3D->CreateDevice( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, m_hWnd, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &d3dpp, &m_pDevice ); if( FAILED(r)) { thr...
Ngày tải lên : 08/08/2014, 23:20
  • 71
  • 486
  • 0
Advanced 3D Game Programming with DirectX - phần 3 pot

Advanced 3D Game Programming with DirectX - phần 3 pot

... Output the text Graphics( )-& gt;DrawTextString( 1, 1, D3DCOLOR_XRGB( 0, 255 , 0), help.c_str() ); // Tell Direct3D we are done rendering Graphics( )-& gt;GetDevice( )-& gt;EndScene(); // Present ... /******************************************************************* * Advanced 3D Game Programming using DirectX 9.0 * * * * * * * * * * * * * * * * * * * * * *...
Ngày tải lên : 08/08/2014, 23:20
  • 71
  • 408
  • 0
Advanced 3D Game Programming with DirectX - phần 4 ppsx

Advanced 3D Game Programming with DirectX - phần 4 ppsx

... x*x*(1-c)+c; _21 = x*y*(1-c )-( z*s); _31 = x*z*(1-c)+(y*s); _41 = 0; _12 = y*x*(1-c)+(z*s); _22 = y*y*(1-c)+c; _32 = y*z*(1-c )-( x*s); _42 = 0; _13 = z*x*(1-c )-( y*s); _23 = z*y*(1-c)+(x*s); ... polygon<point3>& in ) { if( !m_pHead ) 255 reject early (so rendering front-to-back can be an advantage), and alpha-blended polygons need to be rendered...
Ngày tải lên : 08/08/2014, 23:20
  • 71
  • 270
  • 0
Advanced 3D Game Programming with DirectX - phần 6 doc

Advanced 3D Game Programming with DirectX - phần 6 doc

... struct _D3DVECTOR { union { D3DVALUE x; D3DVALUE dvX; }; union { D3DVALUE y; D3DVALUE dvY; }; union { D3DVALUE z; D3DVALUE dvZ; }; } D3DVECTOR, *LPD3DVECTOR; D3DMATRIX ... D3DVALUE dvR; }; union { D3DVALUE g; D3DVALUE dvG; }; union { D3DVALUE b; D3DVALUE dvB; }; union { D3DVALUE a; D3DVALUE dvA; }; } D3DCOLORVALUE; This structure...
Ngày tải lên : 08/08/2014, 23:20
  • 71
  • 295
  • 0
Advanced 3D Game Programming with DirectX - phần 7 ppsx

Advanced 3D Game Programming with DirectX - phần 7 ppsx

... for the bit depth - only supports 1 6-, 2 4-, and 32-bit formats if( bpp == 16 ) d3dpp.BackBufferFormat = D3DFMT_R5G6B5; else if( bpp == 24 ) d3dpp.BackBufferFormat = D3DFMT_R8G8B8; else ... are: 4 35 // 1 5- bit depth buffer and 1-bit stencil d3dpp.AutoDepthStencilFormat = D3DFMT_D15S1; else // 16-bit depth buffer and no stencil d3dpp.AutoDepthStencilFormat =...
Ngày tải lên : 08/08/2014, 23:20
  • 71
  • 354
  • 0
Advanced 3D Game Programming with DirectX - phần 8 ppsx

Advanced 3D Game Programming with DirectX - phần 8 ppsx

... Graphics( )-& gt;GetDevice( )-& gt;CreateVertexBuffer( m_nVerts * sizeof( sVertex ), D3DUSAGE_WRITEONLY, D3DFVF_XYZ | D3DFVF_NORMAL | D3DFVF_TEX1, D3DPOOL_DEFAULT, &m_pVertexBuffer ); 52 4 This ... very reflective 0.0 0.0 0.0 0.76 ## -1 0.0 10.0 -1 0.0 10.0 10.0 -1 0.0 10.0 10.0 -8 .0 -1 0.0 10.0 -8 .0 This code can only correctly deal...
Ngày tải lên : 08/08/2014, 23:20
  • 71
  • 328
  • 0
Advanced 3D Game Programming with DirectX - phần 9 pot

Advanced 3D Game Programming with DirectX - phần 9 pot

... pDevice->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_SRCALPHA ); pDevice->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA ); pDevice->DrawPrimitiveUP( 59 2 pDevice->SetTexture( ... */ pDevice->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE ); pDevice->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_ONE ); pDevice->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_ONE...
Ngày tải lên : 08/08/2014, 23:20
  • 71
  • 400
  • 0
Advanced 3D Game Programming with DirectX - phần 10 potx

Advanced 3D Game Programming with DirectX - phần 10 potx

... structure, 5 MTUDP, 251 classes, 26 1-2 67 , 27 4-2 75, 27 9-2 82 functions, 25 5- 2 61 , 26 8-2 74, 27 5- 2 79 MTUDP(), 256 MTUDPMSGTYPE, 27 1-2 72 multipass, example application, 46 1-4 77 using ... b-spline, 37 4-3 75 D3D object viewer, 33 4-3 44 detail mapping, 45 6-4 58 Direct3D application, 6 6-6 9 DirectInput application, 11 4-1 18...
Ngày tải lên : 08/08/2014, 23:20
  • 67
  • 375
  • 0

Xem thêm