[][src]Function gvr_sys::gvr_get_screen_buffer_viewports

pub unsafe extern "C" fn gvr_get_screen_buffer_viewports(
    gvr: *const gvr_context,
    viewport_list: *mut gvr_buffer_viewport_list
)

Gets the screen (non-distorted) buffer viewport configuration, populating a previously allocated gvr_buffer_viewport_list object. The updated values include the per-eye recommended viewport and field of view for the target.

@param gvr Pointer to the gvr instance from which to get the viewports. @param viewport_list Pointer to a previously allocated viewport list. This will be populated with the screen buffer viewports and resized if necessary.