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); }
public override bool BeforeDraw(GameTime gameTime) { PrimaryThreadLoader.DoLoads(); return(!IsPlayingVdeo); }