DarkBASIC Professional Help File

DX11 GET PROJECTION MATRIX

Retrieves the current projection matrix of the specified camera.
The matrix will be copied to the provided matrix (which will also be returned by this function) or
it will be put into a temporary matrix which is returned and only valid throughout the current frame.

Syntax

    Return Dword = DX11 GET PROJECTION MATRIX(camera, [matrixResult])

Parameters

    camera

> Dword
> The camera to get the current projection matrix of.

    [Optional] matrixResult

> Dword
> The projection matrix of the given camera will be copied here, or to a temporary matrix if this parameter is omitted.

Returns

Returns the matrixResult if it was provided, or the newly created temporary matrix holding the camera's projection matrix otherwise.

See also

MATH Functions Menu
DX11 Function Categories