Mesa EGL
+EGL
The current version of EGL in Mesa implements EGL 1.4. More information about EGL can be found at @@ -33,13 +33,16 @@ directly dispatched to the drivers.
-
-
Run
+configure
with the desired client APIs and enable -the driver for your hardware. For exampleConfigure your build with the desired client APIs and enable +the driver for your hardware. For example:
- $ ./configure --enable-gles1 --enable-gles2 \ - --with-dri-drivers=... \ - --with-gallium-drivers=... +$ meson configure \ + -D egl=true \ + -D gles1=true \ + -D gles2=true \ + -D dri-drivers=... \ + -D gallium-drivers=...
The main library and OpenGL is enabled by default. The first two options @@ -61,7 +64,7 @@ or more EGL drivers.
time-
-
--enable-egl
+-D egl=true
-
By default, EGL is enabled. When disabled, the main library and the drivers @@ -69,19 +72,11 @@ will not be built.
- --with-egl-driver-dir
--
-
-
The directory EGL drivers should be installed to. If not specified, EGL -drivers will be installed to
- -${libdir}/egl
.
-
- --with-platforms
+-D platforms=...
-
List the platforms (window systems) to support. Its argument is a comma -separated string such as
@@ -90,15 +85,13 @@ the main library to decide the native platform. and--with-platforms=x11,drm
. It decides +separated string such as-D platforms=x11,drm
. It decides the platforms a driver may support. The first listed platform is also used by the main library to decide the native platform.haiku
. Theandroid
platform can either be built as a system component, part of AOSP, usingAndroid.mk
files, or -cross-compiled using appropriateconfigure
options. -Thehaiku
platform can only be built with SCons. +cross-compiled using appropriate options. Unless for special needs, the build system should select the right platforms automatically.
- --enable-gles1
---enable-gles2
+-D gles1=true
and-D gles2=true
-
These options enable OpenGL ES support in OpenGL. The result is one big @@ -106,7 +99,7 @@ internal library that supports multiple APIs.
- --enable-shared-glapi
+-D shared-glapi=true
-
By default,
libGL
has its own copy oflibglapi
. @@ -134,9 +127,9 @@ runtimeThis variable specifies the native platform. The valid values are the same -as those for
+--with-platforms
. When the variable is not set, +as those for-D platforms=...
. When the variable is not set, the main library uses the first platform listed in ---with-platforms
as the native platform.-D platforms=...
as the native platform.Extensions like
EGL_MESA_drm_display
define new functions to create displays for non-native platforms. These extensions are usually used by