Skip to content

JSONObject and the jni  #5

Description

@matthewcburke

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions