• Advertisement
Sign in to follow this  

converting an IDirectXFileData to an ID3DXFileData

This topic is 4617 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there an easy way to convert an IDirectXFileData structure to an ID3DXFileData structure? I am upgrading from directx 9.0b to 9.0c and the D3DXLoadMeshFromXof function needs an ID3DXFileData structure and not an IDirectXFileData structure. Any help will be appreciated.

Share this post


Link to post
Share on other sites
Advertisement
The two api's aren't that different, in the new one,

use D3DXFileCreate Function", to make the D3DXFile interface, use this to create an enum object;

HRESULT CreateEnumObject(LPCVOID pvSource,
D3DXF_FILELOADOPTIONS loadflags,
ID3DXFileEnumObject **ppEnumObj
);

the enum object is used to read the file, the enum object creates ID3DXFileData objects.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement