Introduction to Presenting a Scene |
The presentation application programming interfaces (APIs) are a set of methods that control the state of the device that affects what the user sees on the monitor. The set includes methods for setting display modes as well as once-per-frame methods that are used to present images to the user.
Familiarity with the following terms is necessary to understand the presentation APIs.
Because Microsoft Direct3D for Microsoft DirectX 9.0 has one swap chain as a property of the device, there is always at least one swap chain per device. The Device class includes a set of methods that manipulate the implicit swap chain and are a copy of the swap chain's own interface. Applications can create additional swap chains; however, this is not necessary for the typical single-window or full-screen application.
The front buffer is not directly exposed in the Direct3D API for DirectX 9.0. As a result, applications cannot lock or render to the front buffer. For more information, see Accessing the Color Front Buffer.
A call to Manager represents an implicit reset of the device. The DirectX 9.0 API has no notion of a primary surface; it is not possible to create an object that represents the primary surface because it is considered to be an internal property of the device.
Gamma ramps are associated with a swap chain and are manipulated with the GetGammaRamp and SetGammaRamp methods.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center