Jump to content
  • Advertisement
Sign in to follow this  
ProgrammingNerd

converting an IDirectXFileData to an ID3DXFileData

This topic is 4792 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!