Tuesday, July 7, 2009

Is it just me or...

/* from Tutorial 2, Direct3D 9; DirectX SDK */
if( FAILED( g_pd3dDevice->CreateVertexBuffer( 3*sizeof(CUSTOMVERTEX),
         0 /*Usage*/, D3DFVF_CUSTOMVERTEX, D3DPOOL_DEFAULT, &g_pVB, NULL ) ) )
    return E_FAIL;

The tutorial describes the arguments, stating that 'The final parameter is the address of the vertex buffer to create.' Ok, I think it is obvious that it means the address of the vertex buffer being passed; further more the API documentation says the final argument is "Reserved. Set this parameter to NULL. This parameter can be used in Direct3D 9 for Windows Vista to share resources".


I can't help but chuckle a little bit at the tutorial, maybe it is just me and my brains crazy English parser lol.

No comments:

Post a Comment