Page 1 of 1

D3DXSaveMeshToX Little Help

Posted: Wed Apr 16, 2008 2:15 pm
by Num3
Ok, i'm having a blank :? , maybe i need more coffee ...

I have a 3D mesh in memory (DX one) that i manually edit, but now i need to save it.

D3DXSaveMeshToX does that!

Code: Select all

HRESULT D3DXSaveMeshToX(
  LPCTSTR pFilename,
  LPD3DXMESH pMesh,
  CONST DWORD * pAdjacency,
  CONST D3DXMATERIAL * pMaterials,
  CONST D3DXEFFECTINSTANCE * pEffectInstances,
  DWORD NumMaterials,
  DWORD Format
);
I have the D3dx9.lib in PureLibraries\Windows\Libraries but i get a "D3DXSaveMeshToX_("level.x",*parentnode,0,*texture,0,1,0|2) is not a function, array, etc" error ...

I know i'm doing something really stupid, can anyone help?

Posted: Thu Apr 17, 2008 7:54 pm
by spike0314
have you tryed to remove "_" at the end I'm only say because the dx9 lib i have doesnt have the "_" at the end