1 | /* $XFree86: xc/programs/Xserver/GL/mesa/src/X/xf86glxint.h,v 1.4 2002/02/22 21:45:08 dawes Exp $ */
|
---|
2 | /**************************************************************************
|
---|
3 |
|
---|
4 | Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
|
---|
5 | All Rights Reserved.
|
---|
6 |
|
---|
7 | Permission is hereby granted, free of charge, to any person obtaining a
|
---|
8 | copy of this software and associated documentation files (the
|
---|
9 | "Software"), to deal in the Software without restriction, including
|
---|
10 | without limitation the rights to use, copy, modify, merge, publish,
|
---|
11 | distribute, sub license, and/or sell copies of the Software, and to
|
---|
12 | permit persons to whom the Software is furnished to do so, subject to
|
---|
13 | the following conditions:
|
---|
14 |
|
---|
15 | The above copyright notice and this permission notice (including the
|
---|
16 | next paragraph) shall be included in all copies or substantial portions
|
---|
17 | of the Software.
|
---|
18 |
|
---|
19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
---|
20 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
---|
21 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
|
---|
22 | IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
|
---|
23 | ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
---|
24 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
---|
25 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
---|
26 |
|
---|
27 | **************************************************************************/
|
---|
28 |
|
---|
29 | /*
|
---|
30 | * Authors:
|
---|
31 | * Kevin E. Martin <[email protected]>
|
---|
32 | *
|
---|
33 | */
|
---|
34 |
|
---|
35 | #ifdef HAVE_DIX_CONFIG_H
|
---|
36 | #include <dix-config.h>
|
---|
37 | #endif
|
---|
38 |
|
---|
39 | #ifndef _XF86GLXINT_H_
|
---|
40 | #define _XF86GLXINT_H_
|
---|
41 |
|
---|
42 | #include <miscstruct.h>
|
---|
43 | #include <GL/gl.h>
|
---|
44 | #include <GL/xmesa.h>
|
---|
45 |
|
---|
46 | typedef struct __MESA_screenRec __MESA_screen;
|
---|
47 | struct __MESA_screenRec {
|
---|
48 | int num_vis;
|
---|
49 | __GLcontextModes *modes;
|
---|
50 | XMesaVisual *xm_vis;
|
---|
51 | void **private;
|
---|
52 | };
|
---|
53 |
|
---|
54 | typedef struct __MESA_bufferRec *__MESA_buffer;
|
---|
55 | struct __MESA_bufferRec {
|
---|
56 | XMesaBuffer xm_buf;
|
---|
57 | GLboolean (*fbresize)(__GLdrawableBuffer *buf,
|
---|
58 | GLint x, GLint y, GLuint width, GLuint height,
|
---|
59 | __GLdrawablePrivate *glPriv, GLuint bufferMask);
|
---|
60 | GLboolean (*fbswap)(__GLXdrawablePrivate *glxPriv);
|
---|
61 | };
|
---|
62 |
|
---|
63 | extern void __MESA_setVisualConfigs(int nconfigs, __GLXvisualConfig *configs,
|
---|
64 | void **privates);
|
---|
65 | extern Bool __MESA_initVisuals(VisualPtr *visualp, DepthPtr *depthp,
|
---|
66 | int *nvisualp, int *ndepthp, int *rootDepthp,
|
---|
67 | VisualID *defaultVisp, unsigned long sizes,
|
---|
68 | int bitsPerRGB);
|
---|
69 | extern Bool __MESA_screenProbe(int screen);
|
---|
70 |
|
---|
71 | extern void __MESA_resetExtension(void);
|
---|
72 |
|
---|
73 | extern void __MESA_createBuffer(__GLXdrawablePrivate *glxPriv);
|
---|
74 | extern GLboolean __MESA_resizeBuffers(__GLdrawableBuffer *buf,
|
---|
75 | GLint x, GLint y,
|
---|
76 | GLuint width, GLuint height,
|
---|
77 | __GLdrawablePrivate *glPriv,
|
---|
78 | GLuint bufferMask);
|
---|
79 | extern GLboolean __MESA_swapBuffers(__GLXdrawablePrivate *glxPriv);
|
---|
80 | extern void __MESA_destroyBuffer(__GLdrawablePrivate *glPriv);
|
---|
81 |
|
---|
82 | extern __GLinterface *__MESA_createContext(__GLimports *imports,
|
---|
83 | __GLcontextModes *modes,
|
---|
84 | __GLinterface *shareGC);
|
---|
85 | extern GLboolean __MESA_destroyContext(__GLcontext *gc);
|
---|
86 | extern GLboolean __MESA_loseCurrent(__GLcontext *gc);
|
---|
87 | extern GLboolean __MESA_makeCurrent(__GLcontext *gc);
|
---|
88 | extern GLboolean __MESA_shareContext(__GLcontext *gc, __GLcontext *gcShare);
|
---|
89 | extern GLboolean __MESA_copyContext(__GLcontext *dst, const __GLcontext *src,
|
---|
90 | GLuint mask);
|
---|
91 | extern GLboolean __MESA_forceCurrent(__GLcontext *gc);
|
---|
92 |
|
---|
93 | extern GLboolean __MESA_notifyResize(__GLcontext *gc);
|
---|
94 | extern void __MESA_notifyDestroy(__GLcontext *gc);
|
---|
95 | extern void __MESA_notifySwapBuffers(__GLcontext *gc);
|
---|
96 | extern struct __GLdispatchStateRec *__MESA_dispatchExec(__GLcontext *gc);
|
---|
97 | extern void __MESA_beginDispatchOverride(__GLcontext *gc);
|
---|
98 | extern void __MESA_endDispatchOverride(__GLcontext *gc);
|
---|
99 |
|
---|
100 | extern GLuint __glFloorLog2(GLuint val);
|
---|
101 |
|
---|
102 | #endif /* _XF86GLXINT_H_ */
|
---|