开发者

book "Programming Role Playing Games with DirectX 2nd edition" and newer DirectX api

I got the book "Programming Role Playing Games with DirectX 2nd edition" and I notice there are things in the book that are now considered deprecated. There is a whole Section on DirectPlay. And as much as I would like to avoid this section, I am afraid it might s开发者_开发问答crew up the entire engine he is trying to build.

So I was just curious to know even though DirectPlay is considered deprecated by XNA, and directX10. Is it possible to use it still in DirectX 9 ??


Sure you can use it. You can write your entire game in DirectX 3 if you want. DirectX 9 includes ALL previous releases. The only issue you will have is finding the headers.

TBH, though, you'd be best off ditching it and learning sockets programming instead. Sockets will NEVER go away. They aren't particularly difficult either.

At least you wont be learning an unsupported, no-longer documented API.

Its also worth noting that there was a reason nobody used Direct Play in the first place ;)


DirectPlay is considered deprecated long before DirectX10. Direct3D was the only meaningful construct in DX9 for the vast majority of people. DX10 offers more, like with D2D.

You should check out Introduction to Game Programming in DirectX9:A Shader Approach by Frank Luna. That's a 9.0c book (and doesn't use any old features) and there's D3D10 as well.


You can use it in DX9, but you will probably have to set it up to use the same DX version as the the book is using rather than the interfaces in DX9. (There is a #define for this somewhere, hopefully described in your book.) I agree with the other poster about learning sockets, but you can do that after you finish the game in the book.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜