Right now I have this code, but it cuases a "This Program Has Preformed an Illegal opration" error:
What am I doing wrong?Code:Dim Vertices As Long
Vertices = Mesh.GetNumVertices
Set PMesh = D3DX.GeneratePMesh(Mesh, adj, ByVal 0, _
ByVal 0,Vertices, D3DXMESHSIMP_VERTEX)
