次の方法で共有


D3DM_CLEAR (Windows Embedded CE 6.0)

1/6/2010

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.

Syntax

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

Header d3dmddk.h
Windows Embedded CE Windows CE 5.0

See Also

Reference

Direct3D Mobile Driver Structures
D3DM_OPERATION

Other Resources

D3DMCLEAR Values
RECT