Creating the Frame Hierarchy

Most meshes (even those not created with animation built in) have some type of hierarchy; an arm attached to the chest, a finger attached to the arm. In the Direct3D extensions library, you can load these hierarchies and maintain them yourself.

In order to store this information, there are two abstract classes that will be used to maintain the hierarchy: Frame and MeshContainer. Each Frame can contain zero to many sibling frames, as well as a potential child frame. Each frame can also contain zero to many mesh containers.

Before we get into all that, though, a new project will need to be created. Go ahead and get it created with the default options, the device variable declared, and the window style set, just like ...

Get Managed DirectX® 9 Kick Start: Graphics and Game Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.