Changing DIB color table now updates the DIB visible state.
[wine/multimedia.git] / include / wine_gl.h
blob2f3144f5452258ead6d5660373f80f2fc13c1981
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 "ts_xlib.h"
16 /* As GLX relies on X, this is needed */
17 #define ENTER_GL() wine_tsx11_lock()
18 #define LEAVE_GL() wine_tsx11_unlock()
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 #ifdef HAVE_GL_GLEXT_H
28 # include <GL/glext.h>
29 #endif
30 #undef XMD_H
32 #undef APIENTRY
33 #undef CALLBACK
34 #undef WINAPI
36 /* Redefines the constants */
37 #define CALLBACK __stdcall
38 #define WINAPI __stdcall
39 #define APIENTRY WINAPI
41 #endif /* HAVE_OPENGL */
43 #endif /* __WINE_WINE_GL_H */