[cairo] minimal cairo drawing loop

Davide Calaminici amiblit at gmail.com
Tue May 8 01:35:39 PDT 2012


Hello everyone,

just looking for a simple c code to create a minimal drawing loop.

What i want to get is the following.

Load an image
create a surface where to draw

draw lines on the surface
clear the drawing area without cancelling the background image
draw again


eventually, is it possible to use two surface and swap the surface in a
similar way of the double buffering technique?

thank you very much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20120508/822b73ea/attachment.htm>


More information about the cairo mailing list