Android OpenGL ES package and Process summary

Source: Internet
Author: User

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 );

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.