Re: Which X11 backend to use?

Alexandre Bique <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAP737oK=hHSB8CJ0svHTK1zUKq+=-gyH4R89tfQ+NHkd-0BN+Q@mail.gmail.com>
On Mon, Oct 27, 2014 at 12:30 PM, Bernhard R. Fischer
<[email protected]> 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
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.