The freebasic distribution contains examples: examples / graphics / cairo / * bas
All examples do not work on a 64-bit system due to one problem (I will show it using CLOCK.bas as an example):
Code: Select all
Dim As cairo_surface_t Ptr surface = _
cairo_image_surface_create_for_data(ScreenPtr(), _
CAIRO_FORMAT_ARGB32, SCREEN_W, SCREEN_H, _
SCREEN_W * SizeOf(Integer))
P.S. I did not know where to write, so that it would not get lost and was corrected before release fbc 1.08