View Single Post
Old 04-09-2017, 07:26 AM   #2
Youlean
Human being with feelings
 
Youlean's Avatar
 
Join Date: May 2015
Location: Serbia
Posts: 652
Default

Simplest way to do this is using std::deque to construct buffer (use push back and pop front) and then use cairo_move_to, cairo_line_to and cairo_stroke or cairo_fill. Look at the documentation. https://www.cairographics.org/manual/cairo-Paths.html
Youlean is offline   Reply With Quote