Prevent crash when no URL is specified.
[wine] / dlls / opengl32 / wgl_ext.h
1 /* Support for window-specific OpenGL extensions.
2  *
3  * Copyright (c) 2004 Lionel Ulmer
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  */
19
20 #ifndef __DLLS_OPENGL32_WGL_EXT_H
21 #define __DLLS_OPENGL32_WGL_EXT_H
22
23 #include "opengl_ext.h"
24
25 typedef void* (*glXGetProcAddressARB_t)(const GLubyte *);
26
27 /* Used to initialize the WGL extension string at DLL loading */
28 void wgl_ext_initialize_extensions(Display *display, int screen, glXGetProcAddressARB_t proc);
29 void wgl_ext_finalize_extensions(void);
30
31 typedef struct {
32     const char *func_name;
33     void *func_address;
34     const char *(*func_init)(void *(*p_glXGetProcAddressARB)(const GLubyte *), void *context);
35     void *context;
36 } WGL_extension;
37
38 extern WGL_extension wgl_extension_registry[];
39 extern int wgl_extension_registry_size;
40
41 #endif /* __DLLS_OPENGL32_WGL_EXT_H */