Microsoft SDK for Java

setSceneBackgroundDepth

This method of the Direct3dRMFrame Class specifies a background-depth buffer for a scene.

Syntax

public void setSceneBackgroundDepth(DirectDrawSurface s);

Parameters

s A DirectDrawSurface object that will store the new background depth for the scene.

Remarks

The image must have a depth of 16. If the image and viewport sizes are different, the image is scaled first. For best performance when animating the background-depth buffer, the image should be the same size as the viewport. This enables the depth buffer to be updated directly from the image memory without incurring extra overhead.

See Also

getSceneBackgroundDepth

© 1999 Microsoft Corporation. All rights reserved. Terms of use.