您的位置:首页 > 编程语言 > Go语言

Qualcomm_Snapdragon_VR_SDK SvrPlugin脚本简介(4)

2018-03-14 11:13 375 查看
之后在SvrPlugin 中定义了多个枚举类型 具体如下:

public enum PerfLevel
{
kPerfSystem = 0,
kPerfMaximum = 1,
kPerfNormal = 2,
kPerfMinimum = 3
}

public enum TrackingMode
{
kTrackingOrientation = 1,
kTrackingPosition = 2
}

public enum FrameOption
{
kDisableDistortionCorrection = (1 << 0), //!< Disables the lens distortion correction (useful for debugging)
kDisableReprojection = (1 << 1), //!< Disables re-projection
kEnableMotionToPhoton = (1 << 2), //!< Enables motion to photon testing
kDisableChromaticCorrection = (1 << 3) //!< Disables the lens chromatic aberration correction (performance optimization)
};

public struct ViewFrustum
{
public float left; //!< Left Plane of Frustum
public float right; //!< Right Plane of Frustum
public float top; //!< Top Plane of Frustum
public float bottom; //!< Bottom Plane of Frustum

public float near; //!< Near Plane of Frustum
public float far; //!< Far Plane of Frustum (Arbitrary)
}

public struct DeviceInfo
{
public int displayWidthPixels;
public int displayHeightPixels;
public float displayRefreshRateHz;
public int targetEyeWidthPixels;
public int targetEyeHeightPixels;
public float targetFovXRad;
public float targetFovYRad;
public ViewFrustum targetFrustumLeft;
public ViewFrustum targetFrustumRight;
}

public enum eEventType
{
kEventNone = 0,
kEventSdkServiceStarting = 1,
kEventSdkServiceStarted = 2,
kEventSdkServiceStopped = 3,
kEventControllerConnecting = 4,
kEventControllerConnected = 5,
kEventControllerDisconnected = 6,
kEventThermal = 7,
kEventSensorError
};

其中,PerfLevel的含义是当前应用中采用的CPU和GPU的等级。
kPerfSystem代表跟随系统的设置
kPerfMaximum表示采用最大的性能等级
kPerfNormal表示采用普通的性能等级
kPerfMinimum表示采用最小的性能等级。

TrackingMode的含义是当前应用VR采用的模式。
kTrackingOrientation表示当前VR模式为3Dof模式。
kTrackingPosition表示当前VR模式为6Dof模式。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: