ddraw: Matrix values in the execute buffer are handles.
[wine] / dlls / opengl32 / wgl_ext.h
1 /* Support for window-specific OpenGL extensions.
2  *
3  * Copyright (c) 2004 Lionel Ulmer
4  * Copyright (c) 2005 Raphael Junqueira
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20
21 #ifndef __DLLS_OPENGL32_WGL_EXT_H
22 #define __DLLS_OPENGL32_WGL_EXT_H
23
24 #include "opengl_ext.h"
25
26 typedef void* (*glXGetProcAddressARB_t)(const GLubyte *);
27
28 /* Used to initialize the WGL extension string at DLL loading */
29 void wgl_ext_initialize_extensions(Display *display, int screen, glXGetProcAddressARB_t proc, const char* disabled_extensions);
30 void wgl_ext_finalize_extensions(void);
31
32 typedef struct {
33     const char *func_name;
34     void *func_address;
35     const char *(*func_init)(void *(*p_glXGetProcAddressARB)(const GLubyte *), void *context);
36     void *context;
37 } WGL_extension;
38
39 extern WGL_extension wgl_extension_registry[];
40 extern int wgl_extension_registry_size;
41
42 typedef struct wine_glx_s {
43   unsigned     version;
44   /** SGIX / 1.3 */
45   GLXFBConfig* (*p_glXChooseFBConfig) (Display *dpy, int screen, const int *attrib_list, int *nelements);
46   int          (*p_glXGetFBConfigAttrib) (Display *dpy, GLXFBConfig config, int attribute, int *value);
47   XVisualInfo* (*p_glXGetVisualFromFBConfig) (Display *dpy, GLXFBConfig config); 
48   /** 1.3 */
49   GLXFBConfig* (*p_glXGetFBConfigs) (Display *dpy, int screen, int *nelements);
50   void         (*p_glXQueryDrawable) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
51   Bool         (*p_glXMakeContextCurrent) (Display *, GLXDrawable, GLXDrawable, GLXContext);
52 } wine_glx_t;
53 extern wine_glx_t wine_glx;
54
55 #endif /* __DLLS_OPENGL32_WGL_EXT_H */