Hey GameDev
I'm trying to lock an LPD3DXMESH's vertex buffer so as I can fiddle with the vertices.
My problem is that as follows:
When you manually create a mesh in code, you have your own CUSTOMVERTEX kind of struct, and then when you lock the vertex buffer, you can hand it a void pointer to your CUSTOMVERTEX type. EG
CUSTOMVERTEX* vert;
vb->Lock(0, 0, (void**)&vert, NULL);
But when I need to lock the meshs vertex buffer, I don't have a vertex class to lock it with.
So my question is, how do I lock the mesh vertex buffer when I don't have a vertex struct? Is there a kind of default vertex stuct I can use?