Is it possible to run the powervr samples without using nativeactivity?

This topic contains 3 replies, has 2 voices, and was last updated by  Guillem Vinals Gangolells 3 years, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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.

    #38421

    Hi,

    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)”.

    Cheers,
    Guillem

    #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 call

    #38423

    Hello,

    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).

    Cheers,
    Guillem

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.