GL2DEffectFactory

From LinuxMCE
Jump to: navigation, search

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.