Is there an Android implementation of JOGL's GL2ES2?

↘锁芯ラ 提交于 2019-12-10 18:22:28

问题


JOGL includes several interfaces that represent the common features of various versions of OpenGL and OpenGL-ES.

Is there an Android implementation of the GL2ES2 interface somewhere in one of the JOGL packages, or do I have to bite the bullet and implement it myself?


回答1:


You should read this documentation: http://jogamp.org/jogl/doc/Overview-OpenGL-Evolution-And-JOGL.html

JOGL 2 already works as is under Android. What are you trying to do? Numerous tablets and mobile phones support OpenGL-ES.

Imagine that you want to launch a Java program using JOGL on my Samsung Galaxy S3 4G i9305. It supports both OpenGL ES 1 and OpenGL ES 2, it will pick the former or the latter depending on how you create your GL profile. If it picks OpenGL ES 2, GLContext.getCurrentGL() will return a GLES2 instance. GLES2 is a subinterface of GL2ES2. What's the matter with that?



来源:https://stackoverflow.com/questions/34846779/is-there-an-android-implementation-of-jogls-gl2es2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!