private void DrawGame(GameTime gameTime) { FrameCounter.onDraw((float)gameTime.ElapsedGameTime.Milliseconds / 1000); spriteBatch.Begin(SpriteSortMode.Deferred, null, SamplerState.PointClamp, null, null, null, mCamera.getView()); mWorld.Draw(spriteBatch, mCamera, graphics.GraphicsDevice.Viewport.Bounds, ref mRenderDebugInfo.numTilesDrawn); Rectangle gridRect = new Rectangle(-128, -128, 256, 256); spriteBatch.Draw(mGridTexture, gridRect, Color.White); spriteBatch.End(); }