[cairo] Which X11 backend to use?

Alexandre Bique bique.alexandre at gmail.com
Mon Oct 27 04:54:40 PDT 2014


On Mon, Oct 27, 2014 at 12:30 PM, Bernhard R. Fischer
<bf at abenteuerland.at> wrote:
> Hi!

Hi Bernhard,

> I'd like to use libcairo for animated 2d graphics output in an X11 window. I'm
> not very familiar with X11 programming yet.
> There are 3 different types of X11 surfaces: Xlib, Xlib-Xrender, and XCB.
>
> Which one should I use?

I'd advice to use cairo-xlib. As I understand, it is the most backward
compatible backend, if you intend to support pre-cairo-xcb
distributions. Also it checks if xrender is present and uses xrender.
And this backend is well tested.

If xcb is present on your target, you can give a try to xcb.

Cheers,
-- 
Alexandre Bique


More information about the cairo mailing list