home *** CD-ROM | disk | FTP | other *** search
/ Photo CD Demo 1 / Demo.bin / inetray / inetray.x < prev    next >
Text File  |  1992-07-03  |  2KB  |  58 lines

  1. /*======================================================================
  2.                     I N E T R A Y . X 
  3.                     doc: Mon Feb 24 16:07:27 1992
  4.                     dlm: Fri Jul  3 13:49:21 1992
  5.                     (c) 1992 ant@julia
  6.                     uE-Info: 10 0 T 0 0 72 2 2 8 ofnI
  7. ======================================================================*/
  8.  
  9. #include    "prognum.h"
  10. %#include    <sys/param.h>
  11. %#ifndef ITIMER_REAL
  12. %#include    <sys/time.h>        /* for A/UX */
  13. %#endif
  14. %#include    "config.h"
  15.  
  16. struct iPrm {                /* params for init() */
  17.     int    key;            /* session key */
  18.     int    uid;            /* client user id */
  19.     short    rPort;            /* result port# */
  20.     string    rName<MAXHOSTNAMELEN>;     /* remote hostname */
  21.     string    cwd<MAXPATHLEN>;    /* remote wdir */
  22.     string    cmdLine<STRLEN>;    /* rayshade command line */
  23. } ;
  24.  
  25. struct sfPrm {                /* params for startframe() */
  26.     int    key;            /* session key */
  27.     int    fNr;            /* frame number */
  28. } ;
  29.  
  30. struct tbPrm {                /* params for traceblock() */
  31.     int    key;            /* session key */
  32.     int    bNr;            /* block Number */
  33.     int    bSz;            /* block size */
  34.     int    lNr;            /* first linenumber in block */
  35. } ;
  36.  
  37. struct xdrPix {                /* as defined in picture.h */
  38.     double    r;
  39.     double    g;
  40.     double    b;
  41.     double    alpha;
  42. } ;
  43.  
  44. typedef xdrPix pixArr<>;        /* result is a line of pixels */
  45.  
  46. program INETRAY {
  47.     version IRV1 {
  48.         void  INIT(iPrm)    = 1;    /* init (read file) */
  49.         int   STARTFRAME(sfPrm)    = 2;    /* start new frame */
  50.         void  TRACEBLOCK(tbPrm)    = 3;    /* trace block of lines*/
  51.         int   KILL(int)        = 4;    /* kill worker */
  52.         int   WAIT(int)        = 5;    /* wait for dead worker */
  53.         void  TERMINATE(int)    = 6;    /* terminate self */
  54.     } = V1;
  55. } = IRNUM;
  56.  
  57.         
  58.