Difference between revisions of "GL2DEffectFactory"
From LinuxMCE
Rwilson131 (Talk | contribs) m |
|||
Line 1: | Line 1: | ||
− | + | [[Category:Programmer's Guide]] | |
+ | For now are defined only effects for transitions. | ||
They are used for smooth pass from one display to another. | They are used for smooth pass from one display to another. | ||
Latest revision as of 19:48, 24 February 2008
For now are defined only effects for transitions. 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.