Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

layerutil.h 1.6KB

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