// TODO: We need to expose the other Present() overloads
        // for passing source/dest rectangles.

        /// <summary>
        /// Displays the contents of the active back buffer to the screen.
        /// </summary>
        public void Present()
        {
            lock (GraphicsDevice._d3dContext)
            {
                try
                {
                    _swapChain.Present(PresentInterval.GetSyncInterval(), PresentFlags.None);
                }
                catch (SharpDX.SharpDXException)
                {
                }
            }
        }
Ejemplo n.º 2
0
        // TODO: We need to expose the other Present() overloads
        // for passing source/dest rectangles.

        /// <summary>
        /// Displays the contents of the active back buffer to the screen.
        /// </summary>
        public void Present()
        {
            lock (GraphicsDevice._d3dContext)
            {
                /*try
                 * {*/
                _swapChain.Present(PresentInterval.GetSyncInterval(), PresentFlags.None);

                /*}
                 * catch (SharpDX.SharpDXException)
                 * {
                 * }*/
            }
        }