Platform SDK: DirectX

Direct3DDevice7.GetRenderTarget

The Direct3DDevice7.GetRenderTarget method retrieves the DirectDrawSurface7 object that is being used as a render target.

object.GetRenderTarget() As DirectDrawSurface7

Parameters

object
Object expression that resolves to a Direct3DDevice7 object.

Return Values

If the method succeeds, a reference to the render-target surface (a DirectDrawSurface7 object) is returned.

Error Codes

If the method fails, an error is raised and Err.Number will be set to DDERR_INVALIDPARAMS if one of the parameters is invalid.

See Also

Direct3DDevice7.SetRenderTarget