Sign in to follow this  
askavenger

Direct X SDK

Recommended Posts

Hi everyone I have a question about DirectX SDK 8.0 and 9.0. I am learning C++ by reading Game Programming ALL IN ONE. This book uses the old DirectX SDK 8.0. I think the current DirectX SDK is 9.0. If I use 9.0 will the C++ codes still work? Also, i don't think you can download directX SDK 8.0. Thanks!

Share this post


Link to post
Share on other sites
I think DX is backward compatible. Each interface is postfixed by an SDK version number. You can thus link DX 8 applications against the DX 9 SDK, using only the DX 8 interface. But I have no experiene with this and maybe it is very complicated to get this right.

Greetz,

Illco

Share this post


Link to post
Share on other sites
Wellll. Not quite.

The DirectX runtime is backwards compatible. But the DirectX SDK is not. So if you want to program with the DX8 interfaces, you'll need (at the very least) the header files and import libraries which correspond to DX8; the DX9 ones won't cut it. Once the program's compiled, of course, people can use the DX9 runtime to run it.

Share this post


Link to post
Share on other sites
just one thing to note, some of the interface names that contains the version number needs to be changed, eg in DX 8, the device interface is IDirect3DDevice8, whereas in DX9, it is IDirect3DDevice9.

-fuchiefck

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