Upcoming Events
Unite 2010
11/10 - 11/12 @ Montréal, Canada

GDC China
12/5 - 12/7 @ Shanghai, China

Asia Game Show 2010
12/24 - 12/27  

GDC 2011
2/28 - 3/4 @ San Francisco, CA

More events...
Quick Stats
97 people currently visiting GDNet.
2406 articles in the reference section.

Help us fight cancer!
Join SETI Team GDNet!
Link to us Events 4 Gamers
Intel sponsors gamedev.net search:

by Nathan Davies from Alamar's Domain

  Contents

 Introduction
 Display Drivers
 Display Modes
 D3D Devices
 Cleanup and
 Conclusion


 Printable version

 


Cleaning up

As mentioned above, during enumeration of the various Display Modes and Devices, the DirectDraw and Direct3D objects should be released at the end of the loop.

Releasing all the allocated memory is always a good idea, and can be achieved as follows:

Popup : clean up

Conclusion

As you can see, there is more work involved than what I have outlined here. You need a way to either automatically select the enumerated values, or a way to allow your users to select them. Most of the information contained in this article is also in the DirectX 7 Docs. If you need more information, I suggest looking there.

For a full, uninterrupted listing of the code contained in this article, click here

- Nathan Davies
Worlds of Wonder Games