/// <summary> /// This is called when the game should draw itself. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.Black); spriteBatch.Begin(SpriteSortMode.BackToFront, BlendState.AlphaBlend, null, DepthStencilState.None, RasterizerState.CullNone, null, Global.gMainCamera.WVP); // TODO: Add your drawing code here for (int i = 0; i < sprites.Count; i++) { if (sprites[i] != null) { sprites[i].Draw(gameTime, this.spriteBatch); } } if (hexMap != null) { hexMap.Draw(gameTime, spriteBatch); } base.Draw(gameTime); spriteBatch.End(); }