Beispiel #1
0
        /// <summary>
        ///         Causes the scene to redraw its contents.
        /// </summary>
        /// <exception cref="InvalidOperationException">
        ///         <see cref="Resize" /> has not been called.
        /// </exception>
        /// <exception cref="ObjectDisposedException">
        ///         <see cref="Dispose()" /> has been called on this instance.
        /// </exception>
        public void Render()
        {
            MustNotDisposed();
            _renderTarget.MustNotNull("Resize方法未调用");

            Render(_renderTarget);

            _device.Flush();

            OnUpdated();
        }