GL2DEffectFactory
From LinuxMCE
This page was written by Pluto and imported with their permission when LinuxMCE branched off in February, 2007. In general any information should apply to LinuxMCE. However, this page should be edited to reflect changes to LinuxMCE and remove old references to Pluto. |
They are used for smooth pass from one display to another.
The effects are created in that way:
GL2DEffect* Transit = (GL2DEffect*) m_Desktop->EffectBuilder-> CreateEffect(GL2D_EFFECT_BEZIER_TRANSIT, 1000); Transit->Configure(&rectLastSelected);
Where rectLastSelected is the last "feedback" rectangle set for made the transition rect. It should be the size of the object is selected, or any feedback think that the effect should know. For instance there are effects as: slide from left, where the size of the effect doesn't matter at all. The effects should handle the invalid rectangle or NULL pointer even is expected one new size and the programmer doesn't pass it.