Applications use the methods of the IDirect3D9 interface to create Microsoft Direct3D objects and set up the environment. This interface includes methods for enumerating and retrieving capabilities of the device.
| Method | Description |
|---|---|
| IDirect3D9::CheckDepthStencilMatch | Determines whether a depth-stencil format is compatible with a render-target format in a particular display mode. |
| IDirect3D9::CheckDeviceFormat | Determines whether a surface format is available as a specified resource type and can be used as a texture, depth-stencil buffer, or render target, or any combination of the three, on a device representing this adapter. |
| IDirect3D9::CheckDeviceFormatConversion | Tests the device to see if it supports conversion from one display format to another. |
| IDirect3D9::CheckDeviceMultiSampleType | Determines if a multisampling technique is available on this device. |
| IDirect3D9::CheckDeviceType | Verifies whether a hardware accelerated device type can be used on this adapter. |
| IDirect3D9::CreateDevice | Creates a device to represent the display adapter. |
| IDirect3D9::EnumAdapterModes | Queries the device to determine whether the specified adapter supports the requested format and display mode. This method could be used in a loop to enumerate all the available adapter modes. |
| IDirect3D9::GetAdapterCount | Returns the number of adapters on the system. |
| IDirect3D9::GetAdapterDisplayMode | Retrieves the current display mode of the adapter. |
| IDirect3D9::GetAdapterIdentifier | Describes the physical display adapters present in the system when the IDirect3D9 interface was instantiated. |
| IDirect3D9::GetAdapterModeCount | Returns the number of display modes available on this adapter. |
| IDirect3D9::GetAdapterMonitor | Returns the handle of the monitor associated with the Direct3D object. |
| IDirect3D9::GetDeviceCaps | Retrieves device-specific information about a device. |
| IDirect3D9::RegisterSoftwareDevice | Registers a pluggable software device. Software devices provide software rasterization enabling applications to access a variety of software rasterizers. |
The IDirect3D9 interface is obtained by calling the Direct3DCreate9 function.
The LPDIRECT3D9 and PDIRECT3D9 types are defined as pointers to the IDirect3D9 interface.
typedef struct IDirect3D9 *LPDIRECT3D9, *PDIRECT3D9;
Header: Declared in D3d9.h.
Import Library: Use D3d9.lib.