示例#1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="syncInterval"></param>
        public override void SwapBuffers(int syncInterval)
        {
            if (backbufferColor1Resolved != null)
            {
                device.Resolve(backbufferColor1, backbufferColor1Resolved);
                device.Resolve(backbufferColor2, backbufferColor2Resolved);
            }

            OVR.HSWDisplayState hasWarningState;
            hmd.GetHSWDisplayState(out hasWarningState);

            // Remove the health and safety warning.
            if (hasWarningState.Displayed == 1)
            {
                hmd.DismissHSWDisplay();
            }

            hmd.EndFrame(eyeRenderPose, eyeTexture);
        }