mutter/clutter/glx
Robert Bragg 6d9498da7c Adds a cogl_flush() to give developers breaking into raw GL a fighting chance
This function should only need to be called in exceptional circumstances
since Cogl can normally determine internally when a flush is necessary.

As an optimization Cogl drawing functions may batch up primitives
internally, so if you are trying to use raw GL outside of Cogl you stand a
better chance of being successful if you ask Cogl to flush any batched
geometry before making your state changes.

cogl_flush() ensures that the underlying driver is issued all the commands
necessary to draw the batched primitives.  It provides no guarantees about
when the driver will complete the rendering.

This provides no guarantees about the GL state upon returning and to avoid
confusing Cogl you should aim to restore any changes you make before
resuming use of Cogl.

If you are making state changes with the intention of affecting Cogl drawing
primitives you are 100% on your own since you stand a good chance of
conflicting with Cogl internals.  For example clutter-gst which currently
uses direct GL calls to bind ARBfp programs will very likely break when Cogl
starts to use ARBfb programs internally for the material API, but for now it
can use cogl_flush() to at least ensure that the ARBfp program isn't applied
to additional primitives.

This does not provide a robust generalized solution supporting safe use of
raw GL, its use is very much discouraged.
2009-06-30 17:13:38 +01:00
..
clutter-backend-glx.c Adds a cogl_flush() to give developers breaking into raw GL a fighting chance 2009-06-30 17:13:38 +01:00
clutter-backend-glx.h 2008-04-15 Matthew Allum <mallum@openedhand.com> 2008-04-15 21:18:13 +00:00
clutter-glx-texture-pixmap.c Fix handling of not-visible texture pixmaps 2009-06-15 11:29:37 +01:00
clutter-glx-texture-pixmap.h 2008-06-30 Matthew Allum <mallum@openedhand.com> 2008-06-30 14:36:49 +00:00
clutter-glx.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:04:34 +00:00
clutter-stage-glx.c [XInput] Get XInput working again. 2009-06-17 15:09:16 +01:00
clutter-stage-glx.h 2008-03-28 Matthew Allum <mallum@openedhand.com> 2008-03-28 22:50:55 +00:00
Makefile.am Use $(MAINTAINER_CFLAGS) in clutter/{x11,glx}/Makefile.am 2009-04-17 14:53:24 +01:00