Jump to content
  • Advertisement
Sign in to follow this  
Oris

Difference between DX8 and DX9 ?

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

Hey people, well i was experimenting with code and found online some tutorials for Directx8. They work, and i have at the top these lines: #include <d3dx8.h> #pragma comment(lib,"d3d8.lib") #pragma comment(lib,"d3dx.lib") #pragma comment(lib,"winmm.lib") Well, I thought if i change the 8s to 9s like below it wouldn't change anything: #include <d3dx9.h> #pragma comment(lib,"d3d9.lib") #pragma comment(lib,"d3dx.lib") #pragma comment(lib,"winmm.lib") But it gives me many weird errors.. This is the first one: syntax error : missing ';' before identifier 'g_pD3D' Is there something else i should include(libraries or header files) to make it work under Directx9? Thank you :D

Share this post


Link to post
Share on other sites
Advertisement
IDirect3D8 becomes IDirect3D9. IDirect3DDevice8 becomes IDirect3DDevice9. Same for everything else.

There are some changes in the underlying system that might get you. For example, the addition of the SetFVF function for using fixed function, instead of SetVertexShader.

Share this post


Link to post
Share on other sites
Omg, how could i miss that lol.. Sorry guys, yeah i'm gonna change all functions right now ;) Thanks

Share this post


Link to post
Share on other sites
if you are doing a engine you could support both 8 and 9 just need the right files...This is how irrlicht support the younger bother 8....note there isnt a reason to mix the two hence when i say support it is used by it self.

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!