Function ovr_sys::ovr_GetHmdDesc

source ·
pub unsafe extern "C" fn ovr_GetHmdDesc(
    session: ovrSession
) -> ovrHmdDesc
Expand description

Returns information about the current HMD.

ovr_Initialize must have first been called in order for this to succeed, otherwise ovrHmdDesc::Type will be reported as ovrHmd_None.

session Specifies an ovrSession previously returned by ovr_Create, else NULL in which case this function detects whether an HMD is present and returns its info if so.

Returns an ovrHmdDesc. If the hmd is NULL and ovrHmdDesc::Type is ovrHmd_None then no HMD is present.