xref: /aosp_15_r20/external/mesa3d/docs/opengles.rst (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1OpenGL ES
2=========
3
4Mesa implements OpenGL ES 1.1, 2.0, 3.0, 3.1 and 3.2, although some drivers
5may expose lower limited set. More information about OpenGL ES can be found at
6https://www.khronos.org/opengles/.
7
8OpenGL ES depends on a working EGL implementation. Please refer to
9:doc:`Mesa EGL <egl>` for more information about EGL.
10
11Build the Libraries
12-------------------
13
14#. Run ``meson configure`` with ``-D gles1=enabled -D gles2=enabled`` and
15   enable the Gallium driver for your hardware.
16#. Build and install Mesa as usual.
17
18Alternatively, if XCB-DRI2 is installed on the system, one can use
19``egl_dri2`` EGL driver with OpenGL|ES-enabled DRI drivers
20
21#. Run ``meson configure`` with ``-D gles1=enabled -D gles2=enabled``.
22#. Build and install Mesa as usual.
23
24Both methods will install libGLESv1_CM, libGLESv2, libEGL, and one or
25more EGL drivers for your hardware.
26
27Run the Demos
28-------------
29
30There are some demos in ``mesa/demos`` repository.
31