Beispiel #1
0
        /// <summary>
        /// Draw scene
        /// </summary>
        /// <param name="scene">Scene</param>
        private void FrameSceneDraw(Scene scene)
        {
            Stopwatch dSW = new Stopwatch();

            dSW.Start();
            scene.Draw(this.GameTime);
            dSW.Stop();
            GameStatus.Add($"Scene {scene}.Draw", dSW);
        }
Beispiel #2
0
        protected override void Draw(GameTime gameTime)
        {
            try
            {
                GraphicsDevice.Clear(Color.White);

                GraphicsDevice.BlendState        = BlendState.Opaque;
                GraphicsDevice.DepthStencilState = DepthStencilState.Default;
                GraphicsDevice.SamplerStates[0]  = SamplerState.LinearWrap;

                _scene.Draw();
                base.Draw(gameTime);
            }
            catch (Exception e)
            {
                Logger.Log.Error(e);
                throw;
            }
        }
Beispiel #3
0
 protected override void Draw(GameTime gameTime)
 {
     scene.Draw();
     base.Draw(gameTime);
 }