Moved idle event handling to the server.
[wine.git] / include / wine_gl.h
blob736d9d3a10b914764ae4001615f1e9332472c6e7
1 /* Wrapper for OpenGL includes...
2 Copyright 1998 - Lionel Ulmer
4 This wrapper is needed because Mesa uses also the CALLBACK / WINAPI
5 constants. */
7 #ifndef __WINE_WINE_GL_H
8 #define __WINE_WINE_GL_H
10 #include "config.h"
12 #if defined(HAVE_OPENGL)
14 #include "x11drv.h"
16 /* As GLX relies on X, this is needed */
17 #define ENTER_GL() EnterCriticalSection( &X11DRV_CritSection )
18 #define LEAVE_GL() LeaveCriticalSection( &X11DRV_CritSection )
20 #undef APIENTRY
21 #undef CALLBACK
22 #undef WINAPI
24 #define XMD_H /* This is to prevent the Xmd.h inclusion bug to happen :-/ */
25 #include <GL/gl.h>
26 #include <GL/glx.h>
27 #include <GL/glext.h>
28 #undef XMD_H
30 #undef APIENTRY
31 #undef CALLBACK
32 #undef WINAPI
34 /* Redefines the constants */
35 #define CALLBACK __stdcall
36 #define WINAPI __stdcall
37 #define APIENTRY WINAPI
39 #endif /* HAVE_OPENGL */
41 #endif /* __WINE_WINE_GL_H */