D3DM_CLEAR (Windows CE 5.0)

Send Feedback

This structure contains the contents of the D3DMOP_CLEAR command token (see D3DM_OPERATION), which instructs the driver to clear a render target, depth buffer, or index buffer.

typedef struct _D3DM_CLEAR {  DWORD Flags;   DWORD FillColor;  float FillDepth;  DWORD FillStencil;  DWORD NumRects;  RECT Rects[1];} D3DM_CLEAR, * LPD3DM_CLEAR;

Members

  • Flags
    A DWORD value containing a combination of D3DMCLEAR Values that specify what type of item to clear.
  • FillColor
    A DWORD value specifying the color to set the surface to.
  • FillDepth
    A float value specifying the value that all entries in the depth buffer should be set to.
  • FillStencil
    A DWORD value containing the value that all entries in the stencil buffer should be set to.
  • NumRects
    A DWORD value specifying the number of rectangles that must be cleared in the render target. To clear the entire render target, set this value to 0.
  • Rects
    An array of RECT structures defining the rectangular areas on the render target that must be cleared. The size of the array is determined by the value in NumRects.

Requirements

OS Versions: Windows CE 5.0
Header: D3dmddk.h.

See Also

Direct3D Mobile Driver Structures | D3DM_OPERATION | D3DMCLEAR Values | RECT

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.