This method of the Direct3dViewport Class clears the viewport or a set of rectangles in the viewport to the current background material.
public void clear(int count, D3dRect rec, int flags);
count | The number of rectangles pointed to by rec. |
rec | A D3dRect object. |
flags | One or more values of D3DCLEAR_ type, indicating what to clear: the rendering target, the z-buffer, or both. |