Log in or register to post comments

where is imagetarget.c?

October 21, 2011 - 11:39am #1

where is Imaetarget .c sample file located?? i found a file Imagetarget.java in C:\development\android\qcar-android-1-0-6\samples\ImageTargets\src\com\qualcomm\QCARSamples\ImageTargets.
this folder contains other java files also(viz.debublog.java,imagetargetarenderer.java,QCARsampleGLview.java and texture.java) whaat are those files?

Re: where is imagetarget.c?

October 23, 2011 - 8:20pm #4

We recommend using one of the sample projects as a starting point, as you will most likely want your project to use a similar setup. These files aren't automatically generated. You can copy a sample and rename the package and classes as required. Just be sure to update your AndroidManifest file with the new names, and you must also update the method signatures in native (anything that starts with a JNIEXPORT).

- Kim

Re: where is imagetarget.c?

October 22, 2011 - 9:17pm #3

thanks for your answer sir. should we write all those files(exceppt imagetargets.cpp) inside that folder or they are generated automatically?(i have same quest with those java files)

Re: where is imagetarget.c?

October 21, 2011 - 1:22pm #2

ImageTargets.cpp is located in the "jni" folder.

The Java files are responsible for setting up the Android activity and the OpenGL view. They also initialize QCAR, with calls down to native as needed.

The native (cpp) files handle tracking events and rendering. You'll especially want to look at the renderFrame method in ImageTargets.cpp.

- Kim

Log in or register to post comments