[cairo] Cairo + OpenGL - other backends

Vladimir Vukicevic vladimirv at gmail.com
Tue Aug 1 11:46:19 PDT 2006


Hi,

The bits that are compiled in/referenced are controlled through
cairo-feaures.h -- you most likely left CAIRO_HAS_PNG_FUNCTIONS
defined.  (If it's not defined, and you're still getting png-related
errors, then some code isn't protected by CAIRO_HAS_PNG_FUNCTIONS that
should be.)  The only backend that's required is the image surface
backed, and I -believe- at least one font backend; there was some
discussion on the list a while back about removing that restriction,
or supplying a dummy font back-end for such cases, but I'm not sure
where that went.  If that's not part of the code already, you should
be able to write up a dummy font backend pretty quickly.

    - Vlad

On 8/1/06, Johannes Schmidt <sdl at myrealbox.com> wrote:
> Hi,
>
> I've just subscribed to the list, so I hope that my nétiquette is okay.
>
> First, I'd like to thank you for this great library.
> Yesterday, I started using Cairo and wrote and small OpenGL backend.
> It took only 3 hours to get a running prototype. Cairo's ease of use is really
> amazing.
> See here:
> http://www.enst.fr/~jschmidt/capture1.png
>
> All basic drawing works like a charm, using my own GL graphics context.
> This works using Cairo+OpenGL without Glitz or other helper libraries.
>
> I'd like to create a very thin Cairo lib, just with my own backend.
> But when removing png support, it complains about a missing symbol
> (cairo png anything ... can't remember, can confirm it this evening).
>
> Is it generally possible to remove all backends and font stuff,
> running Cairo with a custom backend (GL/D3D)?
> Without touching the source at best ...
>
>
> Regards,
> Johannes


More information about the cairo mailing list