IDirect3DViewport::SetBackground

HRESULT SetBackground(D3DMATERIALHANDLE hMat);

Sets the background associated with the viewport.

·Returns D3D_OK if successful, or an error otherwise, which may be one of the following values:

DDERR_INVALIDOBJECT

DDERR_INVALIDPARAMS

hMat

Material handle that will be used as the background.