Difference between revisions of "GL2DEffectFactory"

From LinuxMCE
Jump to: navigation, search
 
m
 
Line 1: Line 1:
<table width="100%"> <tr><td bgcolor="#FFCFCF">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.</td></tr> </table>For now are defined only effects for transitions.
+
[[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 18: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.