eglGetProcAddress

931 views
Skip to first unread message

Ngo Van Luyen

unread,
Jul 27, 2010, 7:15:20 AM7/27/10
to andro...@googlegroups.com

Hi all, where I can find eglGetProcAddress on NDK?

Thanks,



--
Hello Android!
http://androidcore.com/

alan

unread,
Jul 27, 2010, 10:25:10 AM7/27/10
to android-ndk
the egl functions are not in the NDK and must be accessed from java

Sorin Decuseara

unread,
Feb 4, 2011, 8:27:36 AM2/4/11
to andro...@googlegroups.com
So if you want to use an extension like glGenFramebuffersOES
do you mean you need to obtain the pointer of this function from java?


Louise Cypher

unread,
Feb 4, 2011, 4:47:03 PM2/4/11
to andro...@googlegroups.com
the extensions that are 'inbox' have their pointers already fetched from gles*.so so you just use them (if glGetString(...) returns that you can - prototypes are in androids gles headers)
the things gets complicated for vendor specific extensions that are NOT in android gles headers / android gles*.so

up to android 2.3 (witch support native egl) you cannot legally call eglGetProcAddress since there is no such function in JAVA  egl, and egl for native is not present.
however if you really want to doom yourself to ethernal damnation (or really want some vendor specific extensions - for example tiled rendering on adreno chips) you may 
get egl.so/h from android 2.3 ndk (android-9) and put it in 2.1 (android-5) dir, and link agaist those, i'v tested this on samsung galaxy (android 2.1) and nexus one (android 2.2)
and ... it works ... you have eglGetProcAddress in your native code, and thus you are able to get vendor specific extensions (and the extensions work) ... but this is probably wery bad way, and on some devices it will crash (?)


On 4 February 2011 14:27, Sorin Decuseara <dasor...@gmail.com> wrote:
So if you want to use an extension like glGenFramebuffersOES
do you mean you need to obtain the pointer of this function from java?


--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.



--
--
Code it black!
Reply all
Reply to author
Forward
0 new messages