DirectX SDK |
The Direct3DX context object is a COM object that is the encapsulation of all the various Direct3D and DirectDraw objects that are needed for rendering on the display device. It is created with one of the following methods:
The creation of a context object reduces the amount of work that a DirectX application has to do to initialize Direct3D and DirectDraw, Once created, various Direct3D and DirectDraw objects such as the Direct3DDevice and DirectDrawSurface objects can be indirectly obtained from the context object.
The context object also supports flipping (or blitting) its encapsulated buffers to support multi-buffered rendering through the ID3DXContext::UpdateFrame method.
The ID3DXContext::DrawDebugText and ID3DXContext::Resize methods also simplify tasks common to DirectX applications.
In addition, the ID3DXContext interface supplies a method to clear the various rendering related buffers. For more information on specific methods, see the ID3DXContext reference topic.