/*< X11movie Description Interactive Datacube Movie Usage X11Movie */ /****************************************************************************** * * * main movie routine * * Copyright (c) 1986, Rick Ottolini, Stanford University. * Do not copy without author's permission. * ****************************************************************************** * * PUBLIC VARIABLES * ******************************************************************************/ /* import definitions */ #ifndef SOURCE #define SOURCE "./graphics/X11movie/main.c" #endif #ifndef NOSEPLIB #define OUT "/dev/null" #include #endif #include "movie.h" /* export global variables */ /****************************************************************************** * * INTERACTIVE COMMAND SUBROUTINES * ******************************************************************************/ /* self documentation in seplib */ /****************************************************************************** * * ROUTINES * ******************************************************************************/ /* main routine */ #ifdef NOSEPLIB main (argc,argv,envp) int argc; char **argv, **envp; #else MAIN() #endif { #ifdef NOSEPLIB initpar(argc,argv); doc (SOURCE); #endif Initialize(); XWMainLoop(); #ifdef notdef /* event loop: service interactive commands; output next frame */ /* exit through Quit() command, error, or kill signal */ for(;;) { #ifdef SOLARIS int rc; while ((rc = ReadKey) > 0) Do (rc); #else while (KeyCount() > 0) Do (ReadKey()); #endif /* Menu (); */ mainloop(); } #endif /* notdef */ }