Chapter3.Understanding the Sample Framework


Chapter 3. Understanding the Sample Framework

Now that the idea is complete, the object model has enough information, and you've laid out the specification, you're almost ready to jump into what you've been waiting for: actually writing the code for the game. Normally, you would need to write a lot of "boilerplate" code before you begin this development, which would include such things as enumerating through the devices on your system and picking the most appropriate one to render your scene, as well as creating and maintaining this device. Because the DirectX SDK Summer 2004 Update now includes a robust sample framework that is designed to be used directly by your code and that handles much of this work for you, you can save yourself a lot of time and hassle by simply using that.

The examples in this book use this sample framework, so you will spend this chapter examining it.

In this chapter, you'll learn

  • How to create your project

  • How to use the sample framework to enumerate devices



Beginning 3D Game Programming
Beginning 3D Game Programming
ISBN: 0672326612
EAN: 2147483647
Year: 2003
Pages: 191
Authors: Tom Miller

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net