Creates a new viewport.
Optionalx: numberOptionaly: numberOptionalwidth: numberOptionalheight: numberOptionalisVerticalFlipRequired: booleanOptionalisInternalConstructor: booleanThe apsect ratio of the viewport.
Determines the value to clear the depth buffer to before rendering, if depth clear is enabled.
Determines which portions of the render target should be cleared before rendering to this viewport is performed.
Determines the value to clear the stencil buffer to before rendering, if stencil clear is enabled.
Determines if the viewport image should be flipped on the Y axis after rendering.
Determines if the viewport image should be flipped on the Y axis after rendering.
Determines the render target the viewport is associated with.
Viewport determines to which RenderTarget should rendering be performed. It allows you to render to a sub-region of the target by specifying the area rectangle, and allows you to set up color/depth/stencil clear values for that specific region.