DarkBASIC Professional Help File

DX11 GET VIEW MATRIX

Retrieves the current view 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 VIEW MATRIX(camera, [matrixResult])

Parameters

    camera

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

    [Optional] matrixResult

> Dword
> The view 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 view matrix otherwise.

See also

MATH Functions Menu
DX11 Function Categories