RenderTarget.getViewport

Get the viewport of a view, applied to this render target.

The viewport is defined in the view as a ratio, this function simply applies this ratio to the current dimensions of the render target to calculate the pixels rectangle that the viewport actually covers in the target.

Parameters

view View

The view for which we want to compute the viewport

Return Value

Type: IntRect

Viewport rectangle, expressed in pixels.

Meta