harmony 鸿蒙EGL

  • 2025-06-12
  • 浏览 (3)

EGL

EGL is an interface between Khronos rendering APIs (such as OpenGL ES and OpenVG) and the underlying native window system. OpenHarmony supports EGL.

Introducing EGL

To use EGL capabilities, include the following header file:

#include <EGL/egl.h>

Add the following dynamic link library to CMakeLists.txt:

libEGL.so

To call the EGL extended APIs, include the following header file and add the macro definition to CMakeLists.txt:

#include <EGL/eglext.h>
EGL_EGLEXT_PROTOTYPES

Supported APIs

Currently, OpenHarmony supports the EGL APIs listed in the topic below. The supported APIs will be continuously updated as the version evolves.

EGL Symbols Exported from Native APIs

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native API Standard Libraries

harmony 鸿蒙VkExternalFormatOHOS

harmony 鸿蒙VkImportNativeBufferInfoOHOS

harmony 鸿蒙VkMemoryGetNativeBufferInfoOHOS

harmony 鸿蒙VkNativeBufferFormatPropertiesOHOS

harmony 鸿蒙VkNativeBufferPropertiesOHOS

harmony 鸿蒙VkNativeBufferUsageOHOS

harmony 鸿蒙VkSurfaceCreateInfoOHOS

harmony 鸿蒙Vulkan Module

harmony 鸿蒙libc++

0  赞