[cairo] glitz API changes
c99drn at cs.umu.se
Tue May 18 11:23:12 PDT 2004
Some important changes to the glitz API.
glitz_surface_flush (surface, x, y, width, height):
was used for swapping buffers for double buffered surfaces and flush
rendering operations for single buffered surfaces. By specifying an area
not equal to the complete surface, you could make glitz copy the pixels
of the back buffer to the front buffer instead of swapping buffers.
Only flush rendering operations (a simple glFlush)
Swap buffers for double buffered surfaces. Nothing for single buffered
glitz_surface_set_read_buffer (surface, buffer):
glitz_surface_set_draw_buffer (surface, buffer):
These two functions allow the application to control the read and draw
buffer of a surface. This effects all glitz drawing operations. Adding
stereo surface support to glitz should now be quite easy.
This function can not only be used for copying pixels between different
surfaces, it can also be used for copying pixels within a surface and by
first setting the draw buffer to "front" this function can copy pixels
from the back buffer of a surface to the front buffer.
This change to the glitz API gives the application much better control
over double buffered surfaces and flushing of rendering operations.
My OpenGL backend versions of the cairo demos (cairo-demo.c and
cairo-knockout.c) has been updated to use these new glitz functions for
efficient double buffering (no redrawing on Expose events, only
More information about the cairo