docs/src/integration/embedded_linux/draw_opengl.rst
.. _opengles_draw_unit:
Introduction
The OpenGL ES Draw Unit provides a hardware-accelerated rendering backend for LVGL that leverages OpenGL ES capabilities.
OpenGL ES (OpenGL for Embedded Systems) is a subset of OpenGL designed for embedded devices, mobile phones, and other resource-constrained platforms. The OpenGL ES Draw Unit brings GPU-accelerated rendering to LVGL applications on these platforms.
The OpenGL ES Draw Unit provides excellent performance for:
Prerequisites
OpenGL Overview <opengl_overview>)Configuration
.. code-block:: c
#define LV_USE_OPENGLES 1
#define LV_USE_DRAW_OPENGLES 1
/* Configurable cache count. Bigger cache will improve performance */
#define LV_DRAW_OPENGLES_TEXTURE_CACHE_COUNT 64
See Also
opengl_overview - Complete OpenGL integration overviewegl_driver - EGL Display Driver documentationnanovg_draw_unit - Vector graphics rendering option