Android. OpenGL
-----
Class:
Gldebughelper: A help class for debugging OpenGL ES programs
GLU: class that provides GL Public Tools
Glutils: A Tool class that connects OpenGL ES and Android APIs. It provides texture image operations.
Matrix: matrix computing tool
Exception:
Glexception: OpenGL exception class
------------------------------------------------
Javax. microedition. khronos. EGL
-----
Interface:
EGL: Gl configuration interface
Egl10: configuration interface of gl1.0
Egl11: configuration interface of gl1.1
Classes:
Eglconfig: Gl configuration class
Eglcontext: class of the GL Runtime Environment
Egldisplay: Gl display window class
Eglsurface: View class that can render GL
------------------------------------------------
Javax. microedition. khronos. opengles
-----
Interfaces:
GL: opengles Interface
Gl10: opengles1.0 Interface
Gl10ext: opengles1.0 extension Interface
Gl11: opengles1.1 Interface
Gl11ext: extended API of opengles1.1
Glextentsionpack: opengles extension Interface
Egldisplay: Gl display window class
Eglsurface: View class that can render GL
A) create an EGL instance
Egl10 megl = (egl10) eglcontext. getegl ();
B) Create an egldisplay instance.
Egldisplay megldisplay = megl. eglgetdisplay (egl10.egl _ default_display );
C) initialize egldisplay
Megl. eglinitialize (megldisplay, version );
D) select Config.
Megl. eglchooseconfig (megldisplay, configspec, configs, 1, num_config );
Eglconfig meglconfig = configs [0];
E) Create an OpenGL Runtime Environment
Eglcontext meglcontext = megl. eglcreatecontext (megldisplay,
Meglconfig,
Egl10.egl _ no_context,
Null );
F) Create a New Surface
Meglsurface = megl. eglcreatewindowsurface (megldisplay,
Meglconfig, holder, null );
G) set the opengles environment to the current
Megl. eglmakecurrent (megldisplay, meglsurface, meglsurface,
Meglcontext );
H) obtain the current opengles canvas
GL = meglcontext. getgl ();
I) display the drawing result to the screen
Megl. eglswapbuffers (megldisplay, meglsurface );