Platform SDK: DirectX |
The ID3DXContext::SetClearDepth method sets the value to which the depth-buffer surface will be cleared.
HRESULT SetClearDepth( float z );
This method returns S_OK.
After setting the z value stored in the depth buffer with this method, you can call the ID3DXContext::Clear method to clear the depth-buffer surface to this value.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Version: Requires DirectX 7.0.
Header: Declared in d3dxcore.h.
Library: Use d3dx.lib.
ID3DXContext::Clear, ID3DXContext::SetClearColor, ID3DXContext::SetClearStencil