Original Post
Hi, So i have my Mesh Objects of (semi-pseudo code): and my function to load a mesh to it So i wonder if adding the same mesh to each object will increase the meshes in memory? Should i use LPD3DXMESH *mesh; in my object class instead? Also will directx load the same file each time? I mean my function is telling it to, but does it really do it?
class MeshObject {
LPD3DXMESH mesh;
}
MeshObject meshes[10];
void loadMesh() {
LPD3DXMESH mesh;
LoadMeshFromFile(&mesh, "test.x");
for(int i=0; i<10; i++)
meshes->mesh = mesh;
}