Click or drag to resize
DigitalRuneRenderContextViewport Property
Gets the viewport (= the portion of the back buffer that should be used for rendering).

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public Viewport Viewport { get; set; }

Property Value

Type: Viewport
The viewport.
Remarks

Usually, a graphics screen uses the full back buffer. But when the game is rendered into a IPresentationTarget, it can happen that the back buffer is larger than the current presentation target. The graphics screens and drawable objects should only use the portion of the back buffer that is specified by Viewport.

See Also