/* * BUBBLES.H */ #include #include #include #include #define PMAXX (4096+3*256) #define PMAXY 2048 #define PMAXZ 8192 #define PSKIP 1024 #define CLAMP 500 #define CCLAMP 200 #define ACLAMP 30 #define XPI 3.141592654 #define XTWOPI 6.283185308 #define XPI2 1.570796327 #define OBJECT struct _OBJECT typedef unsigned long ulong; typedef unsigned short uword; typedef unsigned char ubyte; typedef long COOR[3]; OBJECT { long *points; uword *connect; uword npts; uword ncon; uword theta,phi,rot; /* rotation */ long x,y,z; /* position */ }; extern void *malloc(); extern void *GetMsg(); extern SCR *OpenScreen(); extern WIN *OpenWindow(); extern OBJECT *makeobject(); extern double bearing(), range();