1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
pVertices[0].position = D3DXVECTOR3( 0.0f, 0.0f, 0.0f );
pVertices[0].normal = D3DXVECTOR3( 0.0f, 0.0f, -1.0f );
pVertices[0].tu = 0.0f;
pVertices[0].tv = 0.0f;
pVertices[1].position = D3DXVECTOR3( 800.0f, 0.0f, 0.0f );
pVertices[1].normal = D3DXVECTOR3( 0.0f, 0.0f, -1.0f );
pVertices[1].tu = 1.0f;
pVertices[1].tv = 0.0f;
pVertices[2].position = D3DXVECTOR3( 0.0f, 600.0f, 0.0f );
pVertices[2].normal = D3DXVECTOR3( 0.0f, 0.0f, -1.0f );
pVertices[2].tu = 0.0f;
pVertices[2].tv = 1.0f;
pVertices[3].position = D3DXVECTOR3( 800.0f, 600.0f, 0.0f );
pVertices[3].normal = D3DXVECTOR3( 0.0f, 0.0f, -1.0f );
pVertices[3].tu = 1.0f;
pVertices[3].tv = 1.0f; |