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/.
OpenGL ES depends on a working EGL implementation. Please refer to Mesa EGL for more information about EGL.
configure
with --enable-gles1 --enable-gles2
and enable the Gallium driver for your hardware.egl_dri2
EGL driver with OpenGL|ES-enabled DRI drivers
configure
with --enable-gles1 --enable-gles2
.Both methods will install libGLESv1_CM, libGLESv2, libEGL, and one or more EGL drivers for your hardware.
There are some demos in mesa/demos
repository.
OpenGL ES has an additional indirection when dispatching fucntions
Mesa: glFoo() --> _mesa_Foo() OpenGL ES: glFoo() --> _es_Foo() --> _mesa_Foo()
The indirection serves several purposes
Other than the last case, OpenGL ES uses APIspec.xml
to generate functions to check and/or converts the arguments.