ex_camera_set_region

Sets the camera's region position and dimensions

Syntax

ex_camera_set_region(cameraHandle, x, y, width, height)
Argument Description
cameraHandle The camera handle
x The camera's region X
y The camera's region Y
width The camera's region width
height The camera's region height
Returns nothing

Description

This function will set the camera region x/y and dimensions. It can help when positioning and resizing multiple cameras to achieve a split screen view for example.

Example

//Split two camera views horizontally over a 640x480 resolution
ex_camera_set_region(global._camera, 0, 0, 320, 480);
ex_camera_set_region(global._camera2, 321, 0, 319, 480);

Minimum Supported Version

exCamera 1.0.0