1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
/************************************************************************
*
* $Id: conquest.h,v 1.2 2003/11/02 20:53:00 jon Exp $
*
* Copyright 2003 Jon Trulson under the ARTISTIC LICENSE. (See LICENSE).
***********************************************************************/
#ifndef CONQUEST_H
#define CONQUEST_H
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Intrinsic.h>
#ifdef NOEXTERN
#define C2EXTERN
#else
#define C2EXTERN extern
#endif
#define CONQUESTGL_NAME "ConquestGL"
typedef struct _ConquestDataRec *ConquestDataPtr;
typedef struct _ConquestDataRec {
Display *dpy;
XtAppContext app;
XtIntervalId timerId;
XtWorkProcId workId;
Bool rendering; /* are we rendering? */
Widget toplevel;
/* some colors */
Pixel whitePixel;
Pixel blackPixel;
Pixel redPixel;
Pixel yellowPixel;
Pixel greenPixel;
Pixel bluePixel;
Pixel cyanPixel;
Pixel magentaPixel;
Pixel defaultPixel;
Pixel infoPixel;
Pixel specialPixel;
Pixel statsepPixel;
} ConquestDataRec;
C2EXTERN ConquestDataRec ConqData;
#undef C2EXTERN
#endif
|