Original Post
I am creating all my meshes manualy and it works fine.. but it seems strange that i need to set all three position of the ploygon.. te.x: If a mesh is a box, it has 8 vertexs and if i set three vertexs per polygon it is 36 vertexs in memory.. wouldn´t it be better if i could set three indexs on each polygon?
this is my code..
D3DVertex* pVertices;
m_pMesh->LockVertexBuffer(D3DLOCK_DISCARD, (BYTE**)&pVertices);
for (x = 0; x < numPolygons; x++)
{
...
}
I hope there is a better way doing this then mine...