Hi all, i could probably figure this out myself, but i've been working on an AR library which I will releasing soon to the forums, but I want to wrap as much as I can before i release it, and i'm trying to port a lot of the classes being used to B4A so that we can have full control of the entire AR SDK, i'm currently trying to figure out how to load a 2D Float array like this;
I know in B4A I can do this
But how can I actually load the array elements like in the Java code above, I found some function that @DonManfred posted to load this type of array, but that doesn't seem to work for this purpose, does anybody have a way of doing this?
Thanks.
Walter
B4X:
float cube_vertices[][] = {
/* +z */{1.0f / 2, 1.0f / 2, 0.01f / 2}, {1.0f / 2, -1.0f / 2, 0.01f / 2}, {-1.0f / 2, -1.0f / 2, 0.01f / 2}, {-1.0f / 2, 1.0f / 2, 0.01f / 2},
/* -z */{1.0f / 2, 1.0f / 2, -0.01f / 2}, {1.0f / 2, -1.0f / 2, -0.01f / 2}, {-1.0f / 2, -1.0f / 2, -0.01f / 2}, {-1.0f / 2, 1.0f / 2, -0.01f / 2}
};
I know in B4A I can do this
B4X:
Dim cube_vertices_buffer(,) As Float
Thanks.
Walter