Jump to content
  • Advertisement
Sign in to follow this  

XFile Help

This topic is 4781 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

Greetings Everyone, I recently got the second edition of "Programming Role Playing Games with Direct X" and while following along I came accross a problem. In the XFile code the author used the IDirectXFile interface which is Deprecated. I decided to use the SDK docs to see if I could fix the code but I need some direction with the IDirectXFileEnumObject::GetNextDataObject function. in the source code it looks like this // Loop through all objects looking for the frames and meshes while(SUCCEEDED(pDXEnum->GetNextDataObject(&pDXData))) { ParseXFileData(pDXData, TempFrame, TexturePath); ReleaseCOM(pDXData); } GetNextDataObject doesn't exist in the new interface. Since this function is looping can i use while(SUCCEEDED(pDXEnum->GetChild(i++, &pDXData))) { ParseXFileData(pDXData, TempFrame, TexturePath); ReleaseCOM(pDXData); } or am i totally out to lunch? Thanks GuardStar

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!