Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 1 | /* Wrapper for OpenGL includes... |
| 2 | Copyright 1998 - Lionel Ulmer |
| 3 | |
| 4 | This wrapper is needed because Mesa uses also the CALLBACK / WINAPI |
| 5 | constants. */ |
| 6 | |
Patrik Stridvall | 857eb39 | 1999-06-12 18:36:54 +0000 | [diff] [blame] | 7 | #ifndef __WINE_WINE_GL_H |
| 8 | #define __WINE_WINE_GL_H |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 9 | |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 10 | #include "config.h" |
| 11 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 12 | #if defined(HAVE_OPENGL) |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 13 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 14 | #include "x11drv.h" |
| 15 | |
| 16 | /* As GLX relies on X, this is needed */ |
| 17 | #define ENTER_GL() EnterCriticalSection( &X11DRV_CritSection ) |
| 18 | #define LEAVE_GL() LeaveCriticalSection( &X11DRV_CritSection ) |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 19 | |
| 20 | #undef APIENTRY |
| 21 | #undef CALLBACK |
| 22 | #undef WINAPI |
| 23 | |
Lionel Ulmer | 7be462d | 2000-01-15 22:24:47 +0000 | [diff] [blame] | 24 | #define XMD_H /* This is to prevent the Xmd.h inclusion bug to happen :-/ */ |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 25 | #include <GL/gl.h> |
Lionel Ulmer | ad72585 | 1999-05-13 18:53:05 +0000 | [diff] [blame] | 26 | #include <GL/glx.h> |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 27 | #include <GL/glext.h> |
Lionel Ulmer | 7be462d | 2000-01-15 22:24:47 +0000 | [diff] [blame] | 28 | #undef XMD_H |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 29 | |
| 30 | #undef APIENTRY |
| 31 | #undef CALLBACK |
| 32 | #undef WINAPI |
| 33 | |
| 34 | /* Redefines the constants */ |
| 35 | #define CALLBACK __stdcall |
| 36 | #define WINAPI __stdcall |
| 37 | #define APIENTRY WINAPI |
| 38 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 39 | #endif /* HAVE_OPENGL */ |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 40 | |
Patrik Stridvall | 857eb39 | 1999-06-12 18:36:54 +0000 | [diff] [blame] | 41 | #endif /* __WINE_WINE_GL_H */ |