void
fxAirplaneAnimStep (CompWindow *w,
                    float      time)
{
	ANIM_WINDOW (w);

	polygonsAnimStep (w, time);

	// Make sure the airplane always flies towards mouse pointer
	if (aw->com.curWindowEvent == WindowEventClose)
		animBaseFunctions.getMousePointerXY (w->screen, &aw->com.icon.x, &aw->com.icon.y);
}
void
fxAirplaneAnimStep (CompWindow * w,
		      float time)
{
    ANIMADDON_WINDOW (w);
    ANIMADDON_DISPLAY (w->screen->display);

    polygonsAnimStep (w, time);

    // Make sure the airplane always flies towards mouse pointer
    if (aw->com->curWindowEvent == WindowEventClose)
	ad->animBaseFunctions->getMousePointerXY(w->screen, &aw->com->icon.x, &aw->com->icon.y);
}
Exemple #3
0
Bool
fxGlideAnimStep(CompScreen *s, CompWindow *w, float time)
{
   ANIM_SCREEN(s);
   ANIM_WINDOW(w);

   if (fxGlideIsPolygonBased(as, aw))
     return polygonsAnimStep(s, w, time);
   else
     {
        if (!defaultAnimStep(s, w, time))
          return FALSE;

        applyGlideTransform (w, &aw->transform);

        return TRUE;
     }
}