effect: Rework the OffscreenEffect painting
authorEmmanuele Bassi <ebassi@linux.intel.com>
Fri, 16 Apr 2010 11:33:20 +0000 (12:33 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 3 Jun 2010 13:10:55 +0000 (14:10 +0100)
commita3e8e0025a9aed83091d28a8f4fe63cfb81bfd07
tree5be5742d5481105b0b87624e4462f0b82579e99e
parentb4f8ba0f737212b9a7b734ab7fcd015f7def9161
effect: Rework the OffscreenEffect painting

The OffscreenEffect should set up the off screen draw buffer so that it
has the same projection and modelview as if it where on screen; we
achieve that by setting up the viewport to be the same size of the stage
but with an initial offset given by the left-most vertex of the actor.

When we paint the texture attached to the FBO we then set up the
modelview matrix of the on screen draw buffer so that it's the same as
the stage one: this way, the texture will be painted in screen
coordinates and it will occupy the same area as the actor would have
had.
clutter/clutter-offscreen-effect.c
clutter/clutter-offscreen-effect.h