^Johnny2Bad
August 28th, 2005, 03:27 PM
At the moment my current program loads the meshes from the HD one at a time, but this process is repeated even when multiple copies of the same mesh are required. That is why I wish to use some code that can copy a Mesh along with it's materials and textures.
I have tried some code but there seems to be limited control over textures within directx.
I would like a simple piece of code something as follows.
CMesh::Copy(&source)
where CMesh is a Mesh class containing the mesh (m_mesh), NumberOfMaterials, Materials[] and Textures[].
Anyone done this before, some help would be most appreciated.
Thankyou,
^Johnny2Bad
I have tried some code but there seems to be limited control over textures within directx.
I would like a simple piece of code something as follows.
CMesh::Copy(&source)
where CMesh is a Mesh class containing the mesh (m_mesh), NumberOfMaterials, Materials[] and Textures[].
Anyone done this before, some help would be most appreciated.
Thankyou,
^Johnny2Bad