Function gvr_buffer_viewport_get_transform

Source
pub unsafe extern "C" fn gvr_buffer_viewport_get_transform(
    viewport: *const gvr_buffer_viewport,
) -> gvr_mat4f
Expand description

Gets the matrix that positions the viewport in eye space.

@param viewport The buffer viewport. @return Matrix that transforms a quad with vertices (-1, -1, 0), (1, -1, 0), (-1, 1, 0), (1, 1, 0) representing the viewport contents to its desired eye space position for the target eye.