diff options
author | Dave Airlie <airliedfreedesktop.org> | 2005-02-26 03:55:44 +0000 |
---|---|---|
committer | Dave Airlie <airliedfreedesktop.org> | 2005-02-26 03:55:44 +0000 |
commit | 9bfd9582d418c7e73f7b66f050fac80bd3e04115 (patch) | |
tree | 1d77dfbabb77a79b67b4bc91ad073e0867e3749c /include | |
parent | 24dcc6b6bf995f663641f75c72d528510bee1fb2 (diff) |
bring over structs from Xorg glx.h to make Mesa glx.h the one true glx.h
Diffstat (limited to 'include')
-rw-r--r-- | include/GL/glx.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/GL/glx.h b/include/GL/glx.h index f9feb7fd1de..ab0467c1886 100644 --- a/include/GL/glx.h +++ b/include/GL/glx.h @@ -521,6 +521,28 @@ extern Bool glXDrawableAttribARB(Display *dpy, GLXDrawable draw, const int *attr #endif /* GLX_NV_float_buffer */ +/*** Should these go here, or in another header? */ +/* +** GLX Events +*/ +typedef struct { + int event_type; /* GLX_DAMAGED or GLX_SAVED */ + int draw_type; /* GLX_WINDOW or GLX_PBUFFER */ + unsigned long serial; /* # of last request processed by server */ + Bool send_event; /* true if this came for SendEvent request */ + Display *display; /* display the event was read from */ + GLXDrawable drawable; /* XID of Drawable */ + unsigned int buffer_mask; /* mask indicating which buffers are affected */ + unsigned int aux_buffer; /* which aux buffer was affected */ + int x, y; + int width, height; + int count; /* if nonzero, at least this many more */ +} GLXPbufferClobberEvent; + +typedef union __GLXEvent { + GLXPbufferClobberEvent glxpbufferclobber; + long pad[24]; +} GLXEvent; #ifdef __cplusplus } |