Android emulator support for OpenGL ES 3.1

793 views
Skip to first unread message

Rishi Ranjan

unread,
Dec 15, 2014, 9:13:15 PM12/15/14
to android-em...@googlegroups.com
Hi,
    I read the host side emugen README to get the Open GL ES support on Android emulator. I understand that I have to get the APIs from gl31.h and add it to host/libs/GLESv2_dec/gl2.in. Is there a way to automatically read this from the header and insert it to host/libs/GLESv2_dec//gl2.in so that there are not errors. 

Also is there are documentation to write translation for to OpenGL 4.5 instead of 2.0? 

Thanks,
Rishi

Rishi Ranjan

unread,
Dec 16, 2014, 1:37:20 AM12/16/14
to android-em...@googlegroups.com
I was able to find frameworks/native/opengl/libs/tools/genfiles which generates .in files from header but not sure how to generate the .attribs file automatically. 

David Turner

unread,
Dec 16, 2014, 3:50:11 AM12/16/14
to Rishi Ranjan, android-em...@googlegroups.com
On Tue, Dec 16, 2014 at 7:37 AM, Rishi Ranjan <rishi....@gmail.com> wrote:
I was able to find frameworks/native/opengl/libs/tools/genfiles which generates .in files from header but not sure how to generate the .attribs file automatically. 

Unfortunately, it's generally not possible to generate the .attrib files from the headers, because the information they describe is part of the specification, but not the C function declarations (i.e. are buffers input, output or both, are some pointers optional and can be NULL, etc...)

In other words, these have to be written by hand.



On Monday, December 15, 2014 6:13:15 PM UTC-8, Rishi Ranjan wrote:
Hi,
    I read the host side emugen README to get the Open GL ES support on Android emulator. I understand that I have to get the APIs from gl31.h and add it to host/libs/GLESv2_dec/gl2.in. Is there a way to automatically read this from the header and insert it to host/libs/GLESv2_dec//gl2.in so that there are not errors. 

Also is there are documentation to write translation for to OpenGL 4.5 instead of 2.0? 

Thanks,
Rishi

--
You received this message because you are subscribed to the Google Groups "Android emulator development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-emulator...@googlegroups.com.
To post to this group, send email to android-em...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-emulator-dev.
For more options, visit https://groups.google.com/d/optout.

David Turner

unread,
Dec 16, 2014, 4:43:48 AM12/16/14
to Rishi Ranjan, android-em...@googlegroups.com
I don't think there is any documentation. Keep in mind that we're seeing issues related to bugs in the host OpenGL drivers, especially on Windows, which is why we're looking at using ANGLE on this platform to replace the translator libraries, i.e. not using any desktop GL at all.

We're still unsure what's the ES 3.0/3.1 story will be in that context.
Reply all
Reply to author
Forward
0 new messages