[cogl-clip-stack] Support pushing rectangles onto the stack using window coords
authorRobert Bragg <robert@linux.intel.com>
Fri, 8 May 2009 15:32:01 +0000 (16:32 +0100)
committerRobert Bragg <robert@linux.intel.com>
Tue, 12 May 2009 14:44:33 +0000 (15:44 +0100)
commite80fcbc298812b7fc333cec34049a4ee806f469a
treeff0c961a327609fa27d3d5bd7c24a59793d8a62d
parente9b863eba28564dd0b19f982610e5afe93ac17eb
[cogl-clip-stack] Support pushing rectangles onto the stack using window coords

Previously clipping could only be specified in object coordinates, now
rectangles can also be pushed in window coordinates.

Internally rectangles pushed this way are intersected and then clipped using
scissoring.  We also transparently try to convert rectangles pushed in
object coordinates into window coordinates as we anticipate the scissoring
path will be faster then the clip planes and undoubtably it will be faster
than using the stencil buffer.
clutter/cogl/cogl.h.in
clutter/cogl/common/cogl-clip-stack.c
clutter/cogl/common/cogl.c