[cairo] Which X11 backend to use?

Bernhard R. Fischer bf at abenteuerland.at
Mon Oct 27 07:32:44 PDT 2014


On Monday 27 October 2014 12:54:40 Alexandre Bique wrote:
> 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,

Ok, thanks a lot.

Regards,
Bernhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.cairographics.org/archives/cairo/attachments/20141027/c0e725a7/attachment.sig>


More information about the cairo mailing list