The Direct3D Framework

[Previous] [Next]

Microsoft DirectX 7 provides a framework, the CD3DFramework7 class. This class is used in the Immediate Mode examples that the DirectX 7 setup program copies to the \mssdk\samples\multimedia\D3dim\src\ directory. Although this framework doesn't necessarily speed up your applications, it's a great starting point that can help speed up your development process.

In conjunction with this class, a series of routines prefixed with D3DEnum are provided to enumerate and select devices. The CD3DApplication class provides an application class you can use to create applications that use the Direct3D Framework library. Another series of helper functions are provided to work with the Direct3D Framework. These routines use the prefix D3DUtil. These routines supply a set of utilities that provide all the functions for getting the DirectX SDK media path; building a DDSURFACEDESC2 structure; initializing a D3DMATERIAL7 and a D3DLIGHT7 structure; setting up a view matrix, a projection matrix, and a rotation matrix; and handling error messages sent to the output stream.

All the RoadRage code in this book is built on the Direct3D Framework. I suggest that you use the Direct3D Framework for any of your future applications.



Inside Direct3D
Inside Direct3D (Dv-Mps Inside)
ISBN: 0735606137
EAN: 2147483647
Year: 1999
Pages: 131

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