home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / exampleCode / opengl / GLUT / lib / glut / layerutil.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-11  |  1.5 KB  |  54 lines

  1. #ifndef __layerutil_h__
  2. #define __layerutil_h__
  3.  
  4. /* Copyright (c) Mark J. Kilgard, 1993, 1994. */
  5.  
  6. /* This program is freely distributable without licensing fees 
  7.    and is provided without guarantee or warrantee expressed or 
  8.    implied. This program is -not- in the public domain. */
  9.  
  10. /* Based on XLayerUtil.h: Revision: 1.3 */
  11.  
  12. #include <X11/Xlib.h>
  13. #include <X11/Xutil.h>
  14. #include <X11/Xmd.h>
  15.  
  16. /* Transparent type values */
  17. /* None                       0 */
  18. #define TransparentPixel      1
  19. #define TransparentMask       2
  20.  
  21. /* layered visual info template flags */
  22. #define VisualLayerMask        0x200
  23. #define VisualTransparentType    0x400
  24. #define VisualTransparentValue    0x800
  25. #define VisualAllLayerMask    0xFFF
  26.  
  27. /* layered visual info structure */
  28. typedef struct _XLayerVisualInfo {
  29.   XVisualInfo vinfo;
  30.   long layer;
  31.   long type;
  32.   unsigned long value;
  33. } XLayerVisualInfo;
  34.  
  35. /* SERVER_OVERLAY_VISUALS property element */
  36. typedef struct _OverlayInfo {
  37.   /* Avoid 64-bit portability problems by being careful to use
  38.      longs due to the way XGetWindowProperty is specified. Note
  39.      that these parameters are passed as CARD32s over X
  40.      protocol. */
  41.   long overlay_visual;
  42.   long transparent_type;
  43.   long value;
  44.   long layer;
  45. } OverlayInfo;
  46.  
  47. extern int __glutGetTransparentPixel(Display *, XVisualInfo *);
  48. extern XLayerVisualInfo *__glutXGetLayerVisualInfo(Display *,
  49.   long, XLayerVisualInfo *, int *);
  50. extern Status __glutXMatchLayerVisualInfo(Display *,
  51.   int, int, int, int, XLayerVisualInfo *);
  52.  
  53. #endif /* __layerutil_h__ */
  54.