[][src]Function gvr_sys::gvr_distort_to_screen

pub unsafe extern "C" fn gvr_distort_to_screen(
    gvr: *mut gvr_context,
    texture_id: i32,
    viewport_list: *const gvr_buffer_viewport_list,
    head_space_from_start_space: gvr_mat4f,
    target_presentation_time: gvr_clock_time_point
)

@deprecated Use the Swap Chain API instead. This function exists only to support legacy rendering pathways for Cardboard devices. It is incompatible with the low-latency experiences supported by async reprojection.

Performs postprocessing, including lens distortion, on the contents of the passed texture and shows the result on the screen. Lens distortion is determined by the parameters of the viewer encoded in its QR code. The passed texture is not modified.

If the application does not call gvr_initialize_gl() before calling this function, the results are undefined.

@param gvr Pointer to the gvr instance which will do the distortion. @param texture_id The OpenGL ID of the texture that contains the next frame to be displayed. @param viewport_list Rendering parameters. @param head_space_from_start_space This parameter is ignored. @param target_presentation_time This parameter is ignored.