Sign in to follow this  

converting an IDirectXFileData to an ID3DXFileData

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
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,
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this