DarkBASIC Professional Help File

DX11 CREATE ORTHO CAMERA

Creates an orthographic camera with the provided settings.
An orthographic camera is exactly the same as a "normal" (perspective) camera, except that it uses
a different projection matrix so all the same conditions apply.
For obvious reasons you cannot set the fov or aspect ratio of this type of camera; calling those functions
for an ortho camera will do nothing.

Syntax

    Return Dword = DX11 CREATE ORTHO CAMERA(left, right, top, bottom, near, far)

Parameters

    left

> Float
> The minimum X coordinate of the box to render all that lies within, relative to the camera.

    right

> Float
> The maximum X coordinate of the box to render all that lies within, relative to the camera.

    top

> Float
> The minimum Y coordinate of the box to render all that lies within, relative to the camera.

    bottom

> Float
> The maximum Y coordinate of the box to render all that lies within, relative to the camera.

    near

> Float
> The minimum Z coordinate of the box to render all that lies within, relative to the camera.

    far

> Float
> The maximum Z coordinate of the box to render all that lies within, relative to the camera.

Returns

The created camera. Will return 0 if you are trying to create more than 32 cameras at the same time.

See also

CAMERA Functions Menu
DX11 Function Categories