Jump to content
  • Advertisement
Sign in to follow this  
Shock

Direct3D 8 and 9 Header Problems

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

Hello there! Im trying to write renderers in both direct3d 8 and 9 in one dll. I have to include the main classes of each renderer in order create whicever renderer I request. Each of these classes #include d3d8.h and d3d9.h respectively. Thing is it compiles fine if I just include one of the main classes and its Direct3D header ( i.e either d3d8.h or d3d9.h). If I #include both it messaes up. I know why it messes up, all the redefinitions and so on. What I would like to know if if anyone can help me find a workaround for this? Thanks

Share this post


Link to post
Share on other sites
Advertisement
I agree with DrunkenHyena... but I'm pretty sure that d3d9.h includes the interface definitions for D3D8 as well. Try using d3d9.h exclusively.

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!