implems double buffering in Cairo
Alex Vazquez <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CAOTEMUS2AwWOZnWju2e12GUL=ExSS4vaC=Bw=z7WhZfHhmNqKw@mail.gmail.com> |
Hi! i have some tearing in my app. And I think implement a double buffering. My first idea is have two buffers and 1 cairo_surface but i don know if it's possible swap the buffer once the cairo_surface has been created. Example of idea: bufs[0] = createBuffer(); bufs[1] = createBuffer(); surface = cairo_image_surface_create_for_data(bufs[0] , CAIRO_FORMAT_RGB24, width, height, cairo_format_stride_for_width(CAIRO_FORMAT_RGB24, width)); Update(). swap buffers in surface. Is there some function that I can swap the data of a cairo_surface? Is there any other alternative to implement double buffering? Regards! -- cairo mailing list [email protected] https://lists.cairographics.org/mailman/listinfo/cairo