How do you create a more than one vertex buffer in DirectX 10?
What I wrote was:
ID3D10Buffer* g_pVertexBuffer[2];
g_pd3dDevice->IASetVertexBuffers( 0, 1, &g_pVertexBuffer, &stride, &offset );
But I can not pass g_pVertexBuffer as an argument like that. I'm getting the following error:
E0167 argument of type "ID3D10Buffer *(*)[2]" is incompatible with parameter of type "ID3D10Buffer *const *"