程序包 ohos.agp.render.opengl

Provides Embedded-System Graphics Library (EGL) and OpenGL for Embedded Systems (OpenGL ES) APIs.

EGL APIs are used between OpenGL ES and the underlying window system. You can use these APIs to obtain the underlying configuration and information about the EGL display device, create EGLSurface and EGLContext objects, and associate the created objects. Then, you can call rendering APIs of OpenGL ES to draw your desired content and save the content on the EGLSurface. Finally, you call EGL.eglSwapBuffers(EGLDisplay, EGLSurface) to display the content on the screen.

Note: OpenGL ES requires the support of the hardware device. Before using OpenGL ES APIs,check the API version supported by the current device.

For more information, visit EGL and OpenGL ES.

从以下版本开始:
3
跳过导航链接