home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / mesa-1.2.8 / src-tk / private.h < prev    next >
C/C++ Source or Header  |  1996-05-27  |  997b  |  48 lines

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