Fix the VarXxxFromCy conversions.
[wine] / include / wine_gl.h
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
7 #ifndef __WINE_WINE_GL_H
8 #define __WINE_WINE_GL_H
9
10 #include "config.h"
11
12 #if defined(HAVE_OPENGL)
13
14 #include "ts_xlib.h"
15 #include "x11drv.h"
16
17 /* As GLX relies on X, this is needed */
18 #define ENTER_GL() wine_tsx11_lock()
19 #define LEAVE_GL() wine_tsx11_unlock()
20
21 #undef APIENTRY
22 #undef CALLBACK
23 #undef WINAPI
24
25 #define XMD_H /* This is to prevent the Xmd.h inclusion bug to happen :-/ */
26 #include <GL/gl.h>
27 #include <GL/glx.h>
28 #ifdef HAVE_GL_GLEXT_H
29 # include <GL/glext.h>
30 #endif
31 #undef  XMD_H
32
33 #undef APIENTRY
34 #undef CALLBACK
35 #undef WINAPI
36
37 /* Redefines the constants */
38 #define CALLBACK    __stdcall
39 #define WINAPI      __stdcall
40 #define APIENTRY    WINAPI
41
42 #endif /* HAVE_OPENGL */
43
44 #endif /* __WINE_WINE_GL_H */