Tesla Graphics Engine Documentation (January 2012)
RenderTarget2D Constructor (width, height, genMipMap, format, depthFormat)
TeslaTesla.GraphicsRenderTarget2DRenderTarget2D(Int32, Int32, Boolean, SurfaceFormat, DepthFormat)
Creates a new instance of RenderTarget2D.
Declaration Syntax
C#
public RenderTarget2D(
	int width,
	int height,
	bool genMipMap,
	SurfaceFormat format,
	DepthFormat depthFormat
)
Parameters
width (Int32)
The target width in pixels.
height (Int32)
The target height in pixels.
genMipMap (Boolean)
Whether or not mip maps should be generated. If so, the levels are created.
format (SurfaceFormat)
The surface format.
depthFormat (DepthFormat)
The depth format for the depth-stencil buffer.
Exceptions
Exception Condition
TeslaException Thrown if creating the underlying render target fails or the render system was not initialized.

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