MagSoft
unread,Dec 7, 2010, 10:20:33 AM12/7/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-ndk
Hello,
I am trying to use the new NDK r5 function ANativeWindow_fromSurface()
to draw natively on a android.view.SurfaceView.
I get a valid reference to an ANativeWindow representing my
SurfaceView using this function. Indeed, I can get its correct size
using ANativeWindow_getHeight() and ANativeWindow_getWidth().
But drawing doesn't work, neither using OpenGLES as in the native-
activity sample nor ANativeWindow_lock() and
ANativeWindow_unlockAndPost().
Is was I am trying to do possible?
If yes, is there special flags to set to SurfaceView to enable native
drawing?
Is there some example somewhere?
Thank you,
--
MagSoft