Exemple #1
0
        protected override void Draw(GameTime gameTime)
        {
            _graphicsManager.BeginDraw();
            _eventsManager.Draw();
            _graphicsManager.EndDraw();

            base.Draw(gameTime);
        }
Exemple #2
0
 public void Render()
 {
     if (GameMessage != null)
     {
         GameMessage.Text = String.Format("FPS: {0}", _currentFrameCnt);
     }
     // Backbuffer rendering
     lock (_gfxLock)
     {
         _gm.BeginDraw();
         _gm.Clear();
         SceneManager.Render(_gm);
         _gm.EndDraw();
         _gm.Render();
     }
     //Invalidate();
 }