Function openvr_sys2::VR_Init

source ·
pub unsafe fn VR_Init(
    peError: *mut EVRInitError,
    eApplicationType: EVRApplicationType,
    pStartupInfo: *const c_char
) -> *mut IVRSystem
Expand description

Finds the active installation of the VR API and initializes it. The provided path must be absolute or relative to the current working directory. These are the local install versions of the equivalent functions in steamvr.h and will work without a local Steam install.

This path is to the “root” of the VR API install. That’s the directory with the “drivers” directory and a platform (i.e. “win32”) directory in it, not the directory with the DLL itself.

pStartupInfo is reserved for future use.