OpenGL ES
-Mesa implements OpenGL ES 1.1 and OpenGL ES 2.0. More informations about -OpenGL ES can be found at http://www.khronos.org/opengles/.
+Mesa implements OpenGL ES 1.1 and OpenGL ES 2.0. More information about +OpenGL ES can be found at +https://www.khronos.org/opengles/.
OpenGL ES depends on a working EGL implementation. Please refer to Mesa EGL for more information about EGL.
Build the Libraries
-
-
- Run
configure
with--enable-gles-overlay
and enable the Gallium driver for your hardware.
+ - Run
configure
with--enable-gles1 --enable-gles2
and enable the Gallium driver for your hardware. - Build and install Mesa as usual.
Run the Demos
-There are some demos in progs/egl/
. You can use them to test
-your build. For example,
- $ cd progs/egl/eglut - $ make - $ cd ../opengles1 - $ make - $ ./torus_x11 -+
There are some demos in mesa/demos
repository.
Developers
-Internal Libraries
- -Library Name | Used By | Enabled | OpenGL | OpenGL ES 1.x | OpenGL ES 2.x |
libmesa.a | Classic DRI drivers | y | y | --enable-gles1 | --enable-gles2 |
libmesagallium.a | Gallium EGL and DRI drivers | y | y | --enable-gles1 | --enable-gles2 |
libes1gallium.a | Gallium EGL drivers | --enable-gles-overlay | n | y | n |
libes2gallium.a | Gallium EGL drivers | --enable-gles-overlay | n | n | y |
Dispatch Table
-OpenGL ES has an additional indirection when dispatching fucntions
+OpenGL ES has an additional indirection when dispatching functions
Mesa: glFoo() --> _mesa_Foo() @@ -76,5 +65,6 @@ your build. For example,Other than the last case, OpenGL ES uses
+APIspec.xml
to generate functions to check and/or converts the arguments.