1 #ifndef __layerutil_h__
2 #define __layerutil_h__
4 /* Copyright (c) Mark J. Kilgard, 1993, 1994. */
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. */
10 /* Based on XLayerUtil.h: Revision: 1.3 */
13 #include <GL/vms_x_fix.h>
18 #include <X11/Xutil.h>
22 /* Transparent type values */
24 #define TransparentPixel 1
25 #define TransparentMask 2
27 /* layered visual info template flags */
28 #define VisualLayerMask 0x200
29 #define VisualTransparentType 0x400
30 #define VisualTransparentValue 0x800
31 #define VisualAllLayerMask 0xFFF
33 /* layered visual info structure */
34 typedef struct _XLayerVisualInfo
{
41 /* SERVER_OVERLAY_VISUALS property element */
42 typedef struct _OverlayInfo
{
43 /* Avoid 64-bit portability problems by being careful to use
44 longs due to the way XGetWindowProperty is specified. Note
45 that these parameters are passed as CARD32s over X
48 long transparent_type
;
53 extern int __glutGetTransparentPixel(Display
*, XVisualInfo
*);
54 extern XLayerVisualInfo
*__glutXGetLayerVisualInfo(Display
*,
55 long, XLayerVisualInfo
*, int *);
56 extern Status
__glutXMatchLayerVisualInfo(Display
*,
57 int, int, int, int, XLayerVisualInfo
*);
59 #endif /* __layerutil_h__ */