Although I think there is a way of making this work, I have to
question why you would want to do this. It is the Java interface
(including JSR-239)that is well tested in Android.

Besides: if you use GLSurfaceView and override its methods, it really
does do a lot of the work for you. What do you hope to gain by using
the NDK here? What are you doing with OpenGL that would meet Google's
description of good candidates for NDK work?

Recall, http://developer.android.com/sdk/ndk/index.html#overview says:

"The NDK will not benefit most applications. ... Typical good
candidates for the NDK are self-contained, CPU-intensive operations
that don't allocate much memory, such as signal processing, physics
simulation, and so on."

On Jul 24, 8:09 pm, SChaser <[email protected]> wrote:
> I would like to be able to use the OpenGL API from both Java and C
> (via NDK).
>
> In Java, there is a GL object passed, which has all GL methods on it.
>
> In C, you just talk to the native library.
>
> In a single onDrawFrame callback (for which Java is passed a GL), can
> I use methods on the GL object, and also call NDK methods which access
> the openGL library?
>
> In other words, is the GL object just a wrapper for the same instance
> of the native library?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to