I'm having problems accesing this structure.
struct MeshContainer : public D3DXMESHCONTAINER
{
char **materialNames; // Temporary array of material (texture) names.
Material **materials; // Array of materials used by the mesh container.
ID3DXMesh *originalMesh; // Original mesh.
D3DXATTRIBUTERANGE *attributeTable; // Mesh's attribute table.
unsigned long totalAttributeGroups; // Total number of attribute groups.
D3DXMATRIX **boneMatrixPointers; // Array of pointers to the bone transformation matrices.
};
I am trying to get the originalMesh out of the strucuture and put it in this Clonemesh function which is in another file.
// Clone the mesh to the NMapVertex format.
ID3DXMesh* clonedTempMesh = 0;
MeshContainer.originalMesh->CloneMesh(D3DXMESH_MANAGED, elems, g_engine->GetDevice(), &clonedTempMesh);
What I currently have, produces syntax errors. Anyone have any solutions?
Errors:
>c:\documents and settings\hp_administrator\desktop\source\chapter 10\engine\sceneobject.cpp(55) : error C2143: syntax error : missing ';' before '.'
1>c:\documents and settings\hp_administrator\desktop\source\chapter 10\engine\sceneobject.cpp(55) : error C2143: syntax error : missing ';' before '.'