VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.0.1/xf86glxint.h@ 105254

最後變更 在這個檔案從105254是 51223,由 vboxsync 提交於 11 年 前

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

  • 屬性 svn:eol-style 設為 native
檔案大小: 3.8 KB
 
1/* $XFree86: xc/programs/Xserver/GL/mesa/src/X/xf86glxint.h,v 1.4 2002/02/22 21:45:08 dawes Exp $ */
2/**************************************************************************
3
4Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
5All Rights Reserved.
6
7Permission is hereby granted, free of charge, to any person obtaining a
8copy of this software and associated documentation files (the
9"Software"), to deal in the Software without restriction, including
10without limitation the rights to use, copy, modify, merge, publish,
11distribute, sub license, and/or sell copies of the Software, and to
12permit persons to whom the Software is furnished to do so, subject to
13the following conditions:
14
15The above copyright notice and this permission notice (including the
16next paragraph) shall be included in all copies or substantial portions
17of the Software.
18
19THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
22IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
23ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25SOFTWARE 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
46typedef struct __MESA_screenRec __MESA_screen;
47struct __MESA_screenRec {
48 int num_vis;
49 __GLcontextModes *modes;
50 XMesaVisual *xm_vis;
51 void **private;
52};
53
54typedef struct __MESA_bufferRec *__MESA_buffer;
55struct __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
63extern void __MESA_setVisualConfigs(int nconfigs, __GLXvisualConfig *configs,
64 void **privates);
65extern Bool __MESA_initVisuals(VisualPtr *visualp, DepthPtr *depthp,
66 int *nvisualp, int *ndepthp, int *rootDepthp,
67 VisualID *defaultVisp, unsigned long sizes,
68 int bitsPerRGB);
69extern Bool __MESA_screenProbe(int screen);
70
71extern void __MESA_resetExtension(void);
72
73extern void __MESA_createBuffer(__GLXdrawablePrivate *glxPriv);
74extern GLboolean __MESA_resizeBuffers(__GLdrawableBuffer *buf,
75 GLint x, GLint y,
76 GLuint width, GLuint height,
77 __GLdrawablePrivate *glPriv,
78 GLuint bufferMask);
79extern GLboolean __MESA_swapBuffers(__GLXdrawablePrivate *glxPriv);
80extern void __MESA_destroyBuffer(__GLdrawablePrivate *glPriv);
81
82extern __GLinterface *__MESA_createContext(__GLimports *imports,
83 __GLcontextModes *modes,
84 __GLinterface *shareGC);
85extern GLboolean __MESA_destroyContext(__GLcontext *gc);
86extern GLboolean __MESA_loseCurrent(__GLcontext *gc);
87extern GLboolean __MESA_makeCurrent(__GLcontext *gc);
88extern GLboolean __MESA_shareContext(__GLcontext *gc, __GLcontext *gcShare);
89extern GLboolean __MESA_copyContext(__GLcontext *dst, const __GLcontext *src,
90 GLuint mask);
91extern GLboolean __MESA_forceCurrent(__GLcontext *gc);
92
93extern GLboolean __MESA_notifyResize(__GLcontext *gc);
94extern void __MESA_notifyDestroy(__GLcontext *gc);
95extern void __MESA_notifySwapBuffers(__GLcontext *gc);
96extern struct __GLdispatchStateRec *__MESA_dispatchExec(__GLcontext *gc);
97extern void __MESA_beginDispatchOverride(__GLcontext *gc);
98extern void __MESA_endDispatchOverride(__GLcontext *gc);
99
100extern GLuint __glFloorLog2(GLuint val);
101
102#endif /* _XF86GLXINT_H_ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette