gdisplay.h 1.24 KB
#include <gl.h>
#include <device.h>
#include <signal.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>

#define TSIZE 1024
#define MTSIZE 256
#define N_ITEMS 256
#define N_TRACES 384
#define N_WINDS 64

struct item
{
	int tag;
	int col;
	int wn;
	int x0,y0,x1,y1;
	int oldval;
	int newval;
	int newnewval;
	int oldzval;
	int newzval;
	int tval;
	char name[256];
	char fmt[256];
	int p;
	int cmd;
	int redraw;
	int size;
	int xsize;
	int ysize;
	int xtsize;
	int ytsize;
	int xpos;
	int ypos;
	int tsize;
	int px1;
	int nt;
	int mid;
	int **mem;
	int **zmem;
	int **mem1;
	int **zmem1;
	char *ci;
	int tmul;
	int major;
	int px,py,pwe,pwd,prd;
};

struct op
{
	int time;
	int data;
	int zdata;
	int on;
};

struct trace
{
	int wrap;
	int in;
	int pos;
	int thetime;
	int newval;
	int newzval;
	char name[256];
	char fmt[256];
	int p;
	int size;
	struct op op[TSIZE];
	int oN;
	int n;
	char *ci;
};


struct wind
{
	int gwid;
	char *ci;
	char mipname[256];
	int col;
	int x,y,w,h;
	int redraw;
	int newshow;
	int oldshow;
	int tpos;
	int xpos;
	int ypos;
};

struct glob
{
	int nwindows;
	int thetime;
	int ni;
	int nt;
	int newnoise;
	int oldnoise;
	int on;
	int rpt,wpt;
	int mem0;
};

#define BC 160
#define PX0 90
#define PX1 100