Пример #1
0
        protected override void Draw(GameTime gameTime)
        {
            SceneManager.Draw();
            Sketchbook.Draw();
            DebugManager.Draw();
            WindowManager.Draw();

            base.Draw(gameTime);
        }
Пример #2
0
        private static void DrawTransitions()
        {
            if (!transitionInProgress)
            {
                return;
            }

            Sketch.Begin();
            {
                if (!exitCompleted)
                {
                    exitTransition?.Draw();
                }
                else
                {
                    enterTransition?.Draw();
                }
            }
            Sketch.End();
            Sketch.Save(out Texture2D transition);

            Sketchbook.Add(Sketchbook.CreatePage(transition));
        }