[][src]Function gvr_sys::gvr_buffer_viewport_list_set_item

pub unsafe extern "C" fn gvr_buffer_viewport_list_set_item(
    viewport_list: *mut gvr_buffer_viewport_list,
    index: usize,
    viewport: *const gvr_buffer_viewport
)

Update an element of the viewport list or append a new one at the end.

@param viewport_list Pointer to a previously allocated viewport list. @param index Index of the buffer viewport entry to update. If the viewport_list size is equal to the index, a new viewport entry will be added. The viewport_list size must not be less than the index value. @param viewport A pointer to the buffer viewport object.