Added, update information about AppDefault.
[wine/wine64.git] / include / wine_gl.h
blob368124ecc3b920c38e23380ce165fee79d230c6d
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 #ifndef __WINE_CONFIG_H
11 # error You must include config.h to use this header
12 #endif
14 #if defined(HAVE_OPENGL)
16 #include "ts_xlib.h"
18 /* As GLX relies on X, this is needed */
19 #define ENTER_GL() wine_tsx11_lock()
20 #define LEAVE_GL() wine_tsx11_unlock()
22 #undef APIENTRY
23 #undef CALLBACK
24 #undef WINAPI
26 #define XMD_H /* This is to prevent the Xmd.h inclusion bug to happen :-/ */
27 #include <GL/gl.h>
28 #include <GL/glx.h>
29 #ifdef HAVE_GL_GLEXT_H
30 # include <GL/glext.h>
31 #endif
32 #undef XMD_H
34 #undef APIENTRY
35 #undef CALLBACK
36 #undef WINAPI
38 /* Redefines the constants */
39 #define CALLBACK __stdcall
40 #define WINAPI __stdcall
41 #define APIENTRY WINAPI
43 #endif /* HAVE_OPENGL */
45 #endif /* __WINE_WINE_GL_H */