Original Post
Hello all!
I am loading a milkshape 3d file and want to render it.
I managed to load all the triangles therein into a vertex buffer and render it with drawprimitive.
Now i want to have different materials and textures for the triangle groups in the file.
So i need a vertex buffer for every group of trianges.
That means i have to create an array of vertex buffers since i dont now in advance how many buffers are needed.
How can i do that?
LPDIRECT3DVERTEXBUFFER8 *VB;
VB = new ...
But what is ...?
I could do it with a struct like
struct ... {
LPDIRECT3DVERTEXBUFFER8 vb;
} vbstruct;
and use VB = new vbstruct.
What is the best way?
Thank you all