Example #1
0
int GetVisibility(struct AnimationList *al, char *name, double time)
{
   void* a = FindAnimation(name, al);
   Animation* anim = (Animation*) a;
   
   if(a)
   {
      return _GetVisibility(anim, time);
   }
   
   return 1;
}
Example #2
0
/*----------------------------------------------------------------------
  GetVisibility()
  Purpose: to determine whether an object is visible at a certain time
  In parameters:
    al   - the linked list of Animations
    name - the name of the Animation
    time - the time of the wanted visibility
  Out parameters:
    None
  Returns:
    returns 0 if the object is invisible, if visible it returns a
    non-zero number
----------------------------------------------------------------------*/
int GetVisibility(Stack<Animation*> *al, char *name, double time)
{
   Animation* a = FindAnimation(name,al);
   if(a) return _GetVisibility(a, time);
   return 1;  /* visible by default */
}