Microsoft DirectX 8.1 (C++) |
This topic applies to Windows XP Home Edition and Windows XP Professional only.
The InitCompositionTarget method informs the compositor that a new composition target has been created. The compositor should perform any necessary configuration work in this method. This could include attaching a a Z or stencil buffer buffer for the new render target
Syntax
HRESULT InitCompositionTarget(
IUnknown* pD3DDevice,
LPDIRECTDRAWSURFACE7 pddsRenderTarget
);
Parameters
pD3DDevice
[in] Pointer to a D3DDevice object.
pddsRenderTarget
[in] Specifies the DirectDraw surface.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
See Also