Esempio n. 1
0
 private void drawHex(LHGGrid grid, Hex hex)
 {
     grid.AddVertex(new Vector3(hex.Points[0].X, 0.0f, hex.Points[0].Y), hex.HexState.BackgroundColor);
     grid.AddVertex(new Vector3(hex.Points[1].X, 0.0f, hex.Points[1].Y), hex.HexState.BackgroundColor);
     grid.AddVertex(new Vector3(hex.Points[2].X, 0.0f, hex.Points[2].Y), hex.HexState.BackgroundColor);
     grid.AddVertex(new Vector3(hex.Points[3].X, 0.0f, hex.Points[3].Y), hex.HexState.BackgroundColor);
     grid.AddVertex(new Vector3(hex.Points[4].X, 0.0f, hex.Points[4].Y), hex.HexState.BackgroundColor);
     grid.AddVertex(new Vector3(hex.Points[5].X, 0.0f, hex.Points[5].Y), hex.HexState.BackgroundColor);
 }