home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Photo CD Demo 1
/
Demo.bin
/
inetray
/
inetray.x
< prev
next >
Wrap
Text File
|
1992-07-03
|
2KB
|
58 lines
/*======================================================================
I N E T R A Y . X
doc: Mon Feb 24 16:07:27 1992
dlm: Fri Jul 3 13:49:21 1992
(c) 1992 ant@julia
uE-Info: 10 0 T 0 0 72 2 2 8 ofnI
======================================================================*/
#include "prognum.h"
%#include <sys/param.h>
%#ifndef ITIMER_REAL
%#include <sys/time.h> /* for A/UX */
%#endif
%#include "config.h"
struct iPrm { /* params for init() */
int key; /* session key */
int uid; /* client user id */
short rPort; /* result port# */
string rName<MAXHOSTNAMELEN>; /* remote hostname */
string cwd<MAXPATHLEN>; /* remote wdir */
string cmdLine<STRLEN>; /* rayshade command line */
} ;
struct sfPrm { /* params for startframe() */
int key; /* session key */
int fNr; /* frame number */
} ;
struct tbPrm { /* params for traceblock() */
int key; /* session key */
int bNr; /* block Number */
int bSz; /* block size */
int lNr; /* first linenumber in block */
} ;
struct xdrPix { /* as defined in picture.h */
double r;
double g;
double b;
double alpha;
} ;
typedef xdrPix pixArr<>; /* result is a line of pixels */
program INETRAY {
version IRV1 {
void INIT(iPrm) = 1; /* init (read file) */
int STARTFRAME(sfPrm) = 2; /* start new frame */
void TRACEBLOCK(tbPrm) = 3; /* trace block of lines*/
int KILL(int) = 4; /* kill worker */
int WAIT(int) = 5; /* wait for dead worker */
void TERMINATE(int) = 6; /* terminate self */
} = V1;
} = IRNUM;