Re: Transformations usage

[email protected]
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
 

 
Hi Daniele,

Is the map background coming from a file or a pixbuf, or are you drawing the map entirely with Cairo?

Cairo can draw pretty fast so usually you don't have to worry about storing a surface and reusing it in GTK. A good technique though. If you draw a complicated background that doesn't change often, it can speed drawing up. There is a GTK gauge widget that uses some of those ideas.

https://github.com/cecashon/OrderedSetVelociRaptor/tree/master/Misc/AdjustableGauge

For transformations, there is a GTK drawing program that might be helpful.

https://github.com/cecashon/OrderedSetVelociRaptor/blob/master/Misc/cairo_drawings/bezier_points1.c

It will draw polygons and let you drag points around for interactive drawing along with transforms and animation. If you are using Cairo to draw everything with transforms it might give you some ideas.

Eric

-- 
cairo mailing list
[email protected]
https://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.