Platform SDK: DirectX |
Applications use the methods of the ID3DXContext interface to encapsulate all of the various Direct3D and DirectDraw objects required to render a scene This section is a reference to the methods of this interface.
The ID3DXContext interface is obtained by calling the D3DXCreateContext function or the D3DXCreateContextEx function.
The methods of the ID3DXContext interface can be organized into the following groups:
Buffer Management | GetBackBuffer |
GetBufferSize | |
GetNumBackBuffers | |
GetPrimary | |
GetZBuffer | |
Resize | |
Information | GetDD |
GetD3D | |
GetD3DDevice | |
Miscellaneous | GetCreationFlags |
GetDeviceIndex | |
GetNumBits | |
GetRefreshRate | |
UpdateFrame | |
DrawDebugText | |
Surface Management | RestoreSurfaces |
Viewports | Clear |
SetClearColor | |
SetClearDepth | |
SetClearStencil | |
Window Management | GetFocusWindow |
GetWindow |
The ID3DXContext interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods:
IUnknown | AddRef |
QueryInterface | |
Release |
The PD3DXCONTEXT type is defined as a pointer to an ID3DXContext interface:
typedef struct ID3DXContext *PD3DXCONTEXT;
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Version: Requires DirectX 7.0.
Header: Declared in d3dxcore.h.
Library: Use d3dx.lib.