Oglr.XnaGame.Draw C# (CSharp) Method

Draw() protected method

This is called when the game should draw itself.
protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
return void
        protected override void Draw(GameTime gameTime)
        {
            float fps = 1 / (float)gameTime.ElapsedGameTime.TotalSeconds;

            _mainForm.SetFpsDiagText( "FPS: " + fps.ToString( "#0.00" ) ) ;

            summonEditor( ).Draw( gameTime, GraphicsDevice, SpriteBatch);

            base.Draw(gameTime);
        }