示例#1
0
        protected virtual void Draw(GameTime gameTime)
        {
#if ANDROID
            // TODO: It should be possible to move this call to
            //       PrimaryThreadLoader.DoLoads into
            //       AndroidGamePlatform.BeforeDraw and remove the need for the
            //       #if ANDROID check.
            PrimaryThreadLoader.DoLoads();
#endif
            if (GraphicsDevice.DisplayMode.Width != previousDisplayWidth ||
                GraphicsDevice.DisplayMode.Height != previousDisplayHeight)
            {
                previousDisplayHeight = GraphicsDevice.DisplayMode.Height;
                previousDisplayWidth  = GraphicsDevice.DisplayMode.Width;
                graphicsDeviceManager.ResetClientBounds();
            }

            _drawables.ForEachFilteredItem(DrawAction, gameTime);
        }
示例#2
0
 public override bool BeforeDraw(GameTime gameTime)
 {
     PrimaryThreadLoader.DoLoads();
     return(!IsPlayingVdeo);
 }