--- ray/src/hd/rhdisp.h 1998/01/04 18:37:11 3.10 +++ ray/src/hd/rhdisp.h 2003/07/14 22:24:00 3.15 @@ -1,11 +1,14 @@ -/* Copyright (c) 1997 Silicon Graphics, Inc. */ - -/* SCCSid "$SunId$ SGI" */ - +/* RCSid: $Id: rhdisp.h,v 3.15 2003/07/14 22:24:00 schorsch Exp $ */ /* * Header for holodeck display drivers. */ +#ifndef _RAD_RHDISP_H_ +#define _RAD_RHDISP_H_ +#ifdef __cplusplus +extern "C" { +#endif + /* display requests */ #define DR_NOOP 0 /* to release from vain DR_ATTEN */ #define DR_BUNDLE 1 /* lone bundle request */ @@ -18,6 +21,7 @@ #define DR_KILL 8 /* kill rtrace process(es) */ #define DR_RESTART 9 /* restart rtrace */ #define DR_CLOBBER 10 /* clobber holodeck */ +#define DR_VIEWPOINT 11 /* set desired eye position */ /* server responses */ #define DS_BUNDLE 32 /* computed bundle */ @@ -27,6 +31,7 @@ #define DS_STARTIMM 36 /* begin immediate bundle set */ #define DS_ENDIMM 37 /* end immediate bundle set */ #define DS_OUTSECT 38 /* render from outside sections */ +#define DS_EYESEP 39 /* eye separation distance */ /* * Normally, the server channel has priority, with the display process @@ -43,8 +48,8 @@ #endif typedef struct { - int2 type; /* message type */ - int4 nbytes; /* number of additional bytes */ + int16 type; /* message type */ + int32 nbytes; /* number of additional bytes */ } MSGHEAD; /* message head */ /* @@ -60,3 +65,9 @@ typedef struct { * The standard output will always be available for writing, though it * may go to /dev/null. */ + +#ifdef __cplusplus +} +#endif +#endif /* _RAD_RHDISP_H_ */ +