How To Clear the z-buffer in Direct3D Retained Mode (152668)
The information in this article applies to:
- Microsoft Windows 2000 Server
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Professional
- Microsoft Windows XP Home Edition
- Microsoft Windows XP Professional
This article was previously published under Q152668 SUMMARY
The IDirect3DRMViewport::Clear function clears a Retained Mode
viewport's z-buffer and target rendering surface. You cannot direct this
function to clear the z-buffer only. If you need to clear the z-buffer
without calling IDirect3DRMViewport::Clear, then you will need to
extract the immediate mode viewport from the retained mode viewport and
use the low level clear functions in the immediate mode API to clear the
z-buffer only.
REFERENCES
For more information about DirectX and Direct3D, see the DirectX topic
in the Platform SDK. This is available on MSDN and online at
Modification Type: | Minor | Last Reviewed: | 3/21/2005 |
---|
Keywords: | kbDirect3dRM kbFAQ kbhowto KB152668 |
---|
|