Function gvr_sys::gvr_buffer_viewport_set_external_surface_id [] [src]

pub unsafe extern "C" fn gvr_buffer_viewport_set_external_surface_id(
    viewport: *mut gvr_buffer_viewport,
    external_surface_id: i32
)

Sets the ID of the externally-managed Surface texture from which this viewport reads. The ID is issued by GvrLayout. If this viewport does not read from an external surface, this should be set to GVR_EXTERNAL_SURFACE_ID_NONE, which is also the default value. If it does read from an external surface, set this to the ID obtained from GvrLayout and set the source buffer index to the special value GVR_BUFFER_INDEX_EXTERNAL_SURFACE.

@param viewport The buffer viewport. @param external_surface_id The ID of the surface to read from.