- February 10, 2014 at 12:50 pm #31615
Is it possible to run the powervr samples without using nativeactivity and calling the functions manually? I have a native function of my own which is already displaying the data recieved from the camera and i want to use the powervr sdk to draw a 3d model on top of that. I need a way to start the drawing of powersdk code from my own native code.February 11, 2014 at 5:07 pm #38421
The functionality you are looking for lives inside PVRShellOS.cpp (PowerVR_SDK/Shell/OS/Android/PVRShellOS.cpp) as this is the OS dependant bit of the PVRShell. It handles all the initialization, events, etc…
I think the code you are after can be found in the function “void android_main(struct android_app* state)”.
GuillemFebruary 12, 2014 at 4:30 am #38422
You are correct about the android_main() function. What i want to do now is that i want to call the android_main class from my native function in a different class. I cannot figure out how to get the variable android_app* state to pass as the parameter for the function callFebruary 12, 2014 at 5:48 pm #38423
This is a generic question about Android native development unrelated to the PowerVR SDK.
The best place to look is the official NDK documentation or maybe ask the question in the relevant Google group (i.e. https://groups.google.com/forum/#!forum/android-developers).