/// <summary> /// Clears one or more surfaces such as a render target, a stencil buffer, and a depth buffer. /// </summary> /// <param name="clearFlags">Flags that specify which surfaces will be cleared.</param> /// <param name="color">The color that will be used to fill the cleared render target.</param> /// <param name="zdepth">The value that will be used to fill the cleared depth buffer.</param> /// <param name="stencil">The value that will be used to fill the cleared stencil buffer.</param> /// <param name="rectangles">The areas on the surfaces that will be cleared.</param> public void Clear(ClearFlags clearFlags, Vortice.Mathematics.Color color, float zdepth, int stencil, RawRect[] rectangles) { Clear_(rectangles == null ? 0 : rectangles.Length, rectangles, clearFlags, Helpers.ToBgra(color), zdepth, stencil); }
/// <summary> /// Clears one or more surfaces such as a render target, a stencil buffer, and a depth buffer. /// </summary> /// <param name="clearFlags">Flags that specify which surfaces will be cleared.</param> /// <param name="color">The color that will be used to fill the cleared render target.</param> /// <param name="zdepth">The value that will be used to fill the cleared depth buffer.</param> /// <param name="stencil">The value that will be used to fill the cleared stencil buffer.</param> public void Clear(ClearFlags clearFlags, Vortice.Mathematics.Color color, float zdepth, int stencil) { Clear_(0, null, clearFlags, Helpers.ToBgra(color), zdepth, stencil); }