Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::vector<std::vector<float>> const &GetVertices() { return m_Vertices; }
- extern "C" JNIEXPORT jobjectArray JNICALL
- Java_com_google_ar_core_examples_
- java_helloar_HelloArActivity_fillListWithData(
- JNIEnv *env,
- jobject /* this */
- )
- public native Object[] fillListWithData();
- extern "C" JNIEXPORT jobjectArray JNICALL
- Java_com_google_ar_core_examples_java_
- helloar_HelloArActivity_fillListWithData(
- JNIEnv *env,
- jobject /* this */
- ) {
- //verticesVec
- vector<vector<float>> verticesVec = initializer->GetVertices(); // THIS
- VECTOR I NEED TO CONVERT TO JOBJECTARRAY
- jobjectArray verticesArr = env->NewObjectArray(verticesVec.size(), WHAT
- CLASS SHOULD BE HERE?,NULL);
- //HOW TO FILL THE ARRAY HERE??
- return verticesArr;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement