VertexArray.cs 713 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Drawing;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using bbiwarg.Graphics;
  8. namespace bbiwarg.DataSource
  9. {
  10. class VertexArray
  11. {
  12. private Vertex[] vertices;
  13. private Color[] colors;
  14. public VertexArray(Vertex[] vertices, Color[] colors)
  15. {
  16. this.vertices = vertices;
  17. this.colors = colors;
  18. }
  19. public int getNumVertices()
  20. {
  21. return vertices.Length;
  22. }
  23. public Vertex getVertex(int i) {
  24. return vertices[i];
  25. }
  26. public Color getColor(int i) {
  27. return colors[i];
  28. }
  29. }
  30. }