home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / Mesa-1.2.1 / src-tk / private.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-05  |  871 b   |  39 lines

  1. #include <X11/Xlib.h>
  2. #include <X11/Xutil.h>
  3. #include <GL/glx.h>
  4.  
  5. #if defined(__cplusplus) || defined(c_plusplus)
  6. #define class c_class
  7. #endif
  8.  
  9.  
  10. typedef struct _WINDOW_REC {
  11.     int x, y, w, h;
  12.     GLenum type;
  13.     Window wMain, wOverlay;
  14.     XVisualInfo *vInfoMain, *vInfoOverlay;
  15.     Colormap cMapMain, cMapOverlay;
  16.     GLXContext cMain, cOverlay;
  17. } WINDOW_REC;
  18.  
  19.  
  20. extern Display *xDisplay;
  21. extern int xScreen; 
  22. extern Window wRoot;
  23. extern WINDOW_REC w;
  24. extern Atom deleteWindowAtom;
  25.  
  26. extern void (*ExposeFunc)(int, int);
  27. extern void (*ReshapeFunc)(int, int);
  28. extern void (*DisplayFunc)(void);
  29. extern GLenum (*KeyDownFunc)(int, GLenum);
  30. extern GLenum (*MouseDownFunc)(int, int, GLenum);
  31. extern GLenum (*MouseUpFunc)(int, int, GLenum);
  32. extern GLenum (*MouseMoveFunc)(int, int, GLenum);
  33. extern void (*IdleFunc)(void);
  34.  
  35. extern GLenum drawAllowFlag;
  36.  
  37. extern int cursorNum;
  38.  
  39.