December 2004
Beginner
432 pages
10h 17m
English
Managed DirectX has plenty of events that it captures and fires in a normal application. Every single managed graphics object hooks certain events on the device to ensure that it can behave correctly.
For example, when a device is reset (due to a window resize or a switch to or from full screen), any object stored in the default memory pool needs to be disposed. Many objects also have something to do after the device is reset. In the default case, each object that needs to be disposed before a reset hooks the DeviceLost event, and the items who also have post-reset work hook the DeviceReset event.
This scenario doesn't even consider the fact that each object hooks the device's Dispose event. In short, if events ...
Read now
Unlock full access