[cairo] Cairo with OpenGLES

Singh Khurdiya Vijay (CM-AI/EAR) Vijay.SinghKhurdiya at de.bosch.com
Tue Jul 26 01:54:11 PDT 2011

Thanks for test..

I am able to run test .Please find attached result sheet with different backed.
In the case of gl backed test is running (With Good FPS..) but graphic is not visible on the display (Only In the case of TRAP test gl backed graphic is visible on the screen, but same test is not showing  good result) but all other backed graphic is visible on display.

Below is slight modification from your source .
In Cairo :
- Currently my glesv2 lib doesn't support GL_OES_teture_npot so for time being I have disable same from cairo-gl-device.c file (cairo_gl_context_init).
- On X window my graphic is working only with rgb565 so I am using egl_config accordingly.

In Test :
- On X window my graphic is working only with rgb565 so I am using egl_config accordingly.

Can you please give me hint what went wrong in the case of gl-backend.


-----Original Message-----
From: Alexandros Frantzis [mailto:alexandros.frantzis at linaro.org]
Sent: Montag, 25. Juli 2011 14:17
To: Singh Khurdiya Vijay (CM-AI/EAR)
Cc: Benjamin Franzke; cairo at cairographics.org
Subject: Re: [cairo] Cairo with OpenGLES

On Mon, Jul 25, 2011 at 11:01:42AM +0200, Singh Khurdiya Vijay (CM-AI/EAR) wrote:
> Thanks...Now it build's.
> Initially I was also trying with only gles2 but I was getting some error from header & once I enabled gl I was not getting same error from header so I thought enable-gl also required.
> Once u confirmed I tried to check header properly & found gles2 header was not proper & after changing header I got error solved..
> As I mentioned earlier if anyone have test case to  test gles2 then please share the same.

One idea is to use the cairo test suite (use test target 'egl').

If you need a simple sample application, I have ported cairogears to gles2. Get it from:


This is actually a debian source package with patches already applied to
the tree, but you can just treat it as a normal source tarball. To see
what changes have been applied look in debian/patches/*.

To build with GLX or GLES2 support use Makefile.glx or Makefile.es2 respectively.
(or use it as a base to create your own if cairo with gl/gles2 support is
not installed system-wide).

Depending on the kind of build, the '-gl' command line option will use cairo-gl
or cairo-gles2.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Cairo-Test-Result.xls
Type: application/vnd.ms-excel
Size: 25088 bytes
Desc: Cairo-Test-Result.xls
URL: <http://lists.cairographics.org/archives/cairo/attachments/20110726/6423e15d/attachment-0001.xls>

More information about the cairo mailing list