Skip to main content
GameDev.net gamedev.net
🔒 Locked

"DirectX User Interfaces" book

Started by TheMac Mar 19, 2005 at 6:46 PM 6 replies 1k views
Original Post
TheMac
TheMac
Theres a book from Wordware called DirectX User Interfaces, and of course covers programming an interface into your game. I havn't seen a lot of material published on this subject so I got the book. Is anyone else having trouble with the source? Is there a site for the book? If your thinking of getting the book, I'm not so sure you should. I only spent a little time on it so far, but the little that I've covered, I'm not impressed. But then again interfaces are vital. If anyone else knows of any good material out there on interfaces let me know. Thanks.
demiurgeinc
demiurgeinc
Interfaces are much simpler than they sound. By implementing an interface you are simply agreeing to implement all the methods of the interface. Affectively allowing your class to communicate with other classes and methods. I believe one of the simplest interfaces to learn is the IEnumerable interface. This interface allows your class to be accessed with the foreach statement. By implementing this interface you are guaranteeing to implement the GetEnumerator method.

I haven't looked to much into Interfaces with DirectX, but the concept of interfaces themselves is pretty straightforward. What methods and how to implement them, depends on the interface.
nilkn
nilkn
I believe he's talking about user interfaces, not abstract interfaces.
Dave Hunt
Dave Hunt
The book is based on the Summer 2003 version of the SDK. That may explain why your having issues with the source code. There have been a number of changes in the SDK since then.
makingroulette
makingroulette
im currently using the User Interface development book by wordware to make an actual user interface for my game and ive noticed a lot of the code in the book is wrong. The declared constructors for the Texture/Surface class are recursive - they go on forever creating themselves.

Looking on the bright side though the advantage of all these mistakes is that it raises your concentration as you are wary of errors.
demiurgeinc
demiurgeinc
Hmm... it does appear your right. :!
TheMac
TheMac
Interesting, if anyone knows of any other source of information on the subject, let me know.

Shane

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.