Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between android.opengl and javax.microedition.khronos.opengles packages?

Just couldn't find anything regarding the purpose of android.opengl classes anywhere on the web: they seem to be copies of javax.microedition.khronos.opengles - just with static vs member methods.

So is there any special meaning in using them instead of J2ME classes: are they supposed to be faster, have additional functionality, simpler to work with?

I think of using them instead of passing that GL reference all the time.

like image 495
myself Avatar asked Nov 07 '10 13:11

myself


People also ask

What is Android OpenGL?

Android includes support for high performance 2D and 3D graphics with the Open Graphics Library (OpenGL®), specifically, the OpenGL ES API. OpenGL is a cross-platform graphics API that specifies a standard software interface for 3D graphics processing hardware.

What is GLSurfaceView?

GLSurfaceView is a new API class in Android 1.5. GLSurfaceView makes OpenGL ES applications easier to write by: Providing the glue code to connect OpenGL ES to the View system. Providing the glue code to make OpenGL ES work with the Activity life-cycle. Making it easy to choose an appropriate frame buffer pixel format.


1 Answers

Ok, just in case someone is really interested in the difference between android.opengl and OpenGL ES standard javax.microedition.khronos.opengles packages, the following can be found in Android's classic ApiDemos project: javadoc for com.example.android.apis.graphics.StaticTriangleRenderer class tells that android.opengl package simply provides a bit more functionality then standard khronos package, and, quite handy, it's easier for C developers who can simply write glBindBuffer(...) instead of ((GL20) gl).glBindBuffer(...).

like image 116
myself Avatar answered Nov 03 '22 09:11

myself