Exemple #1
0
        /// <summary>
        /// Ends the eye frame.
        /// </summary>
        /// <param name="eye">The eye.</param>
        public void EndEyeFramne(Eyes eye)
        {
#if UNITY_ANDROID && !UNITY_EDITOR
            PluginEvents pluginEventType = (eye == Eyes.Left) ?
                                           PluginEvents.LeftEyeEndFrame :
                                           PluginEvents.RightEyeEndFrame;
            int eyeSceneTextureId = this.Hmd.GetEyeSceneTextureId(eye);
            int eyeGazeTextureId  = 0; // Gaze texture is deleted.

            NativePluginEvents.IssuePluginEventWithParam(pluginEventType, ((long)eyeGazeTextureId << 32) + (long)eyeSceneTextureId);
#endif
        }
Exemple #2
0
 /// <summary>
 /// Does the time warp.
 /// </summary>
 /// <param name="timeWarpViewIndex">Index of the time warp view.</param>
 public void DoTimeWarp(int timeWarpViewIndex)
 {
     NativePluginEvents.IssuePluginEventWithParam(PluginEvents.TimeWarp, timeWarpViewIndex);
 }