I'm going to try and write a few D3D tutorials, aimed at the same audience as directxtutorial.com, except written more correctly. I'm going to wait until I've written 2 or 3 tutorials before I actually post them anywhere (Most likely in this journal and on my website), since I'm very good at sitting and doing on and a bit tutorials and then getting distracted.
So far I've written the code for the first tutorial, which just creates a window, a D3D device (Windowed, no Z-buffer, uses monitor format for backbuffer format), and fills the backbuffer blue. Nothing exciting, but it's correct, handles all errors gracefully, and (IMO) is reasonably well structured.
My plan for tutorials is:
1. Setup (As above)
2. Drawing a spinning triangle (Fixed function, DrawPrimitiveUP())
3. Fullscreen, resetting device and toggling between windowed and fullscreen
4. Z-buffers, checking device formats, and a spinning cube (Still fixed function)
Not quite sure about that though, #4 might be a bit confusing and dull, but I want to get the whole checking device format stuff done reasonably early on so people know it still needs done - although since there's adequate error checking, it'll fail nicely with an error message dialog (Just a MessageBox()) rather than crash like the directxtutorial ones.
Other things I'd like to cover later, in no particular order:
Anyway, hopefully I can actually motivate myself to continue writing this; I'd like to knock them out at one or two a week ideally. I'm going to try writing the article itself tomorrow and Wednesday, and post it here on Wedesday evening. In theory...