An idea on how to handle information from the JSONObject and pass it to the native code:
- Make a java GameObject class. A GameObject will be a thing that we need to draw.
- Most of the game objects will have a string ID, x, y, and z coordinates, and a rotation matrix.
- Unload the JSONObect into these GameObjects.
- Make a vector (or array?) of GameObjects, and have the native code reference this vector in @dgreene's rendering loop.
This idea is modeled after the way that the Image Targets sample passes texture objects around.
What do you think? Might this work?
An idea on how to handle information from the JSONObject and pass it to the native code:
This idea is modeled after the way that the Image Targets sample passes texture objects around.
What do you think? Might this work?