This animation took about five lines of source code.
Environment: VC6 Win 9x/ME/2000/XP (DirectX 9 needed); NT will not be supported
DirectX from Microsoft is a mighty and powerful interface, providing the programmer with a lot of functions to do anything you can think of. But the price is that using DirectX (in this case, the 9th generation) is a kind of an enigma to most programmers who might need it for home use.
That’s the point where I come in!
I got fed up of writing the same routines every time I needed them. So, I decided to encapsulate the most common functions into a small class. This was when I first started with programming DirectX 7.
This class grew and grew over time and now we’ve reached DirectX 9. The class reached a state where it could be a powerful tool for almost everybody out there who knows how to program a simple dialog. Much more knowledge is not needed to use DirectX 9 with my class. It would be a good addon to download some more DX tools from my Web site, but the class that can be downloaded here supplies you with the following items:
- DirectDraw
- Direct3D (Prelit and dynamic lights, fog, Effects, Alphatransparence, Stencilbuffer, Zbuffer, etc…) in addition to some more of my helper classes, even Bumpmapping and Environmentmapping
- DirectSound
- DirectInput (Also ForceFeedback)
- DirectPlay
- DirectVoice
Simply create an object of my class and call SetParent(…); the whole world of DirectX will be available to you without endless hours of not understanding how the interfaces work. If you don’t believe, take a look at the downloads available at www.pcs-soft.de and see what I’ve done with this class in a couple of hours or days.
I wish you a good time and much success by doing whatever you feel like.
Shots from T. Bock.