Developing GLES 1.1/2.0

Since maverick mesa ships GLES and EGL APIs, which in combination with the arrival of gallium drivers opens up exciting ways to develop OpenGL ES applications and libraries on your x86/intel hardware.

For development, all you need is to install the appropriate -dev packages from the archive:

# for GLES 2.0
sudo apt-get install libegl1-mesa-dev libgles2-mesa-dev

# for GLES 1.1
sudo apt-get install libegl1-mesa-dev libgles1-mesa-dev

And use the appropriate .pc files to link against it:

# for GLES 2.0
pkg-config --cflags --libs egl glesv2

# for GLES 1.1
pkg-config --cflags --libs egl glesv1_cm

Testing hardware accelleration

To test that your graphics hardware is supported by current gallium install and run the clutter tests for es20 or es11

# for GLES 2.0
sudo apt-get install clutter-eglx-es20-1.0-tests
/usr/lib/clutter-1.0/tests/eglx-es20/test-interactive test-actors

# for GLES 1.1
sudo apt-get install clutter-eglx-es11-1.0-tests
/usr/lib/clutter-1.0/tests/eglx-es20/test-interactive test-actors

... here both shouldnt complain about the software rendering etc.

DeveloperDocs/EglWithGallium (last modified 2010-07-27 18:34:54)