开发者

Android Java Vertex Array?

开发者 https://www.devze.com 2023-01-27 02:21 出处:网络
When I used to program for the iphone I used structs to store my vertices using a nested for loop for tiling.

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

精彩评论

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