Search code examples
javaandroidopengl-esvertex

Android Java Vertex Array?


When I used to program for the iphone I used structs to store my vertices using a nested for loop for tiling. Now in java I cannot seem to find a way to do this. Can anyone help me out on this one? Thanks.


Solution

  • There is no such thing as a struct in Java. You could of course create your own Vertex class (with two values for the X and Y coordinate), but I quesss the easiest thing would be to just use the build-in Point class.