//Enable the use of views
view_enabled = true;
//Make view 0 visible
view_set_visible(0, true);
//Set the port bounds of view 0 to 2736x1834
view_set_wport(0, 2736);
view_set_hport(0, 1834);
//Resize application to match application size
window_set_rectangle((display_get_width() - view_wport[0]) * 0.5, (display_get_height() - view_hport[0]) * 0.5, view_wport[0], view_hport[0]);
surface_resize(application_surface,view_wport[0],view_hport[0]);
//Build a camera at (0,0), with size 2736x1834, 0 degrees of angle, no target instance, instant-jupming hspeed and vspeed, with a 32 pixel border
camera = camera_create_view(0, 0, 2736, 1834, 0, obj_view, -1, -1, 32, 32);
//Set view0 to use the camera "camera"
view_set_camera(0, camera);
//Set camera target
camera_set_view_target(view_camera[0], obj_view);
camera_set_view_border(view_camera[0], view_hport[0] * 4, view_wport[0] * 2);