view_get_wport


Description

This function can be used to retrieve the width of the given view port.


Syntax:

view_get_wport(view_port)


Arguments:

Argument Description
view_port The view port to target (0 - 7)


Returns:

Real


Example:

if view_get_wport(0) != (display_get_width () / 2)
   {
   view_set_wport(0, display_get_width() / 2);
   }

The above code will check the width of the view port[0] and if it is not half of the display width it is set to that value.


Back: Cameras
Next: view_get_hport
© Copyright YoYo Games Ltd. 2017 All Rights Reserved