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 */
14 #include <X11/Xutil.h>
18 /* Transparent type values */
20 #define TransparentPixel 1
21 #define TransparentMask 2
23 /* layered visual info template flags */
24 #define VisualLayerMask 0x200
25 #define VisualTransparentType 0x400
26 #define VisualTransparentValue 0x800
27 #define VisualAllLayerMask 0xFFF
29 /* layered visual info structure */
30 typedef struct _XLayerVisualInfo
{
37 /* SERVER_OVERLAY_VISUALS property element */
38 typedef struct _OverlayInfo
{
39 /* Avoid 64-bit portability problems by being careful to use
40 longs due to the way XGetWindowProperty is specified. Note
41 that these parameters are passed as CARD32s over X
44 long transparent_type
;
49 extern int __glutGetTransparentPixel(Display
*, XVisualInfo
*);
50 extern XLayerVisualInfo
*__glutXGetLayerVisualInfo(Display
*,
51 long, XLayerVisualInfo
*, int *);
52 extern Status
__glutXMatchLayerVisualInfo(Display
*,
53 int, int, int, int, XLayerVisualInfo
*);
55 #endif /* __layerutil_h__ */