Microsoft DirectX 8.1 (Visual Basic) |
Many Microsoft® Visual Basic® applications clear the depth buffer before rendering each new frame. You can explicitly clear the depth buffer through Microsoft® Direct3D® by calling Direct3DDevice8.Clear and specifying D3DCLEAR_ZBUFFER for the Flags parameter. The Clear method allows you to specify an arbitrary depth value in the Z parameter.