Showing a Sequence

Download from gintro examples directory

/* File: pfexSequence.c
*/

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

void pfexInitConverter(char *fname_model);
pfScene *pfexInitScene(int argc, char **argv);
void pfexUpdate(void);

void usage(void)
{
    fprintf(stderr, "usage: pfexLoadModel fname1 ... fnamen\n");
    fprintf(stderr, "       pfexLoadModel [-usage|-help]\n");
    exit(-1);
}

int main(int argc, char **argv)
{
    int i;
    pfScene *scene;

    if (argc < 2 || !strcmp(argv[1], "-usage") || !strcmp(argv[1], "-help"))
	usage();

    pfInit();
    for (i=1; i