开发者

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.


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.


You might try a Buffer with a few helper methods for packing data the way you want.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜