DarkBASIC Professional Help File

DX11 GET CAMERA VIEWPORT Y

Retrieves the offset in pixels to where the specified camera's viewport rectangle begins on its render target (or the backbuffer for the main camera).
By default this will be zero, since the viewport covers the entire render target / backbuffer, but this can be manually changed using DX11 SET CAMERA VIEWPORT.

Syntax

    Return Float = DX11 GET CAMERA VIEWPORT Y([camera])

Parameters

    [Optional] camera

> Dword
> The camera to get the viewport's starting Y coordinate of. Will use the main camera if omitted.

Returns

The starting (top left) Y coordinate of the specified camera. The coordinate is given in render target pixels.

See also

CAMERA Functions Menu
DX11 Function Categories