ARCed.Controls.GraphicsDeviceControl.EndDraw C# (CSharp) Метод

EndDraw() приватный Метод

Ends drawing the control. This is called after derived classes have finished their Draw method, and is responsible for presenting the finished _srcTexture onto the screen, using the appropriate WinForms control handle to make sure it shows up in the right place.
private EndDraw ( ) : void
Результат void
        void EndDraw()
        {
            try
            {
                var sourceRectangle = new Rectangle(0, 0, ClientSize.Width,
                                                                ClientSize.Height);

                this.GraphicsDevice.Present(sourceRectangle, null, Handle);
            }
            catch
            {
                // Present might throw if the device became lost while we were
                // drawing. The lost device will be handled by the next BeginDraw,
                // so we just swallow the exception.
            }
        }