//if the meshs material has a texture map, load it if(tempMat->HasTextureMap == true) { if(tempMat->tFileName != NULL) { D3DXCreateTextureFromFile(lpDevice, tempMat->tFileName, &tempMesh->lpTexture); } }
[edited by - dovyman on April 20, 2003 4:06:00 PM]