Tesla Graphics Engine Documentation (January 2012)
Clear Method (options, color, depth, stencil)
TeslaTesla.Graphics.ImplementationSwapChainImplementationClear(ClearOptions, Color, Single, Int32)
Sets the swapchain's backbuffer as the active render target and clears it.
Declaration Syntax
C#
public abstract void Clear(
	ClearOptions options,
	Color color,
	float depth,
	int stencil
)
Parameters
options (ClearOptions)
Clear option flags defining which buffer to clear.
color (Color)
Color to clear the color buffer to
depth (Single)
Depth value to clear the depth buffer to
stencil (Int32)
Stencil value to clear the stencil buffer to
Remarks
The use of a swapchain differs slightly from using render targets. When a swapchain's targets are set to the device, other render targets (off screen) can be set. To make the backbuffer active again, simply set null to the renderer.

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)