| RenderContextViewport Property |
Gets the viewport (= the portion of the back buffer that should be used for rendering).
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public Viewport Viewport { get; set; }
Public Property Viewport As Viewport
Get
Set
public:
property Viewport Viewport {
Viewport get ();
void set (Viewport value);
}
member Viewport : Viewport with get, set
Property Value
Type:
ViewportThe 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