Viewport

Viewport class

A IRenderTarget contains at least one viewport for rendering the scene.

public class Viewport

Properties

Name Description
Area { get; set; } Gets or sets the area of the viewport in render target.
BackgroundColor { get; set; } Gets or sets the background color of the viewport.
DepthClear { get; set; } Gets or sets the depth value used when clear the viewport with depth buffer bit set.
Enabled { get; set; } Enable or disable this viewport.
Frustum { get; set; } Gets or sets the camera of this Viewport
RenderTarget { get; } Gets the render target that created this viewport.
ZOrder { get; set; } Gets or sets the Z-order of the viewport.

See Also