"Fossies" - the Fresh Open Source Software archive

Member "graph/prog/anitroll/anitroll.c" of archive pixcon-5.02.tar.gz:




/* *************************************************************
   This program is a keyframe-hiearchical script interpretor
   designed to create an animation datafile in the PIXCON
   data ascii file format

   by: Alex Harper              12/20/93
************************************************************* */


#include "anitroll.h"


/* ****************************************************************
   This is the animation controller - main function
**************************************************************** */
int main(int argc, char **argv) {

   if (argc < 3) {
      printf("usage : anitroll [-in <filename>] [-out <filename>] [-test] [-frame # #] [-c] [-render]\n");
      printf("                 [-silent] [-verbose] [-x <length>] [-y <height>]\n");
      return 0;
   }

   if (!render_init(argc, argv)) {
      render_shutdown();
      return 0;
   }

   render_update();

   render_shutdown();
   return 1;
}