Microsoft DirectX 8.0 (C++) |
The ID3DXRenderToSurface interface is used to generalize the process of rendering to surfaces. If the surface is not a render target, a compatible render target is used, and the result is copied to the surface at the end of the scene.
The ID3DXRenderToSurface interface is obtained by calling the D3DXCreateRenderToSurface function.
The methods of the ID3DXRenderToSurface interface can be organized into the following groups.
Information | GetDesc |
GetDevice | |
Rendering | BeginScene |
EndScene |
The ID3DXRenderToSurface interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods.
IUnknown | AddRef |
QueryInterface | |
Release |
The LPD3DXRENDERTOSURFACE type is defined as a pointer to the ID3DXRenderToSurface interface.
typedef interface ID3DXRenderToSurface* LPD3DXRENDERTOSURFACE;
Header: Declared in D3dx8core.h.
Import Library: Use D3dx8.lib.