Created an ACM MS ADPCM codec.
[wine.git] / include / wine_gl.h
blobc2b2c4051585b4b5217d6a7bf5e91954730abb46
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 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #ifndef __WINE_WINE_GL_H
23 #define __WINE_WINE_GL_H
25 #ifndef __WINE_CONFIG_H
26 # error You must include config.h to use this header
27 #endif
29 #if defined(HAVE_OPENGL)
31 #include "ts_xlib.h"
33 /* As GLX relies on X, this is needed */
34 #define ENTER_GL() wine_tsx11_lock()
35 #define LEAVE_GL() wine_tsx11_unlock()
37 #undef APIENTRY
38 #undef CALLBACK
39 #undef WINAPI
41 #define XMD_H /* This is to prevent the Xmd.h inclusion bug to happen :-/ */
42 #include <GL/gl.h>
43 #include <GL/glx.h>
44 #ifdef HAVE_GL_GLEXT_H
45 # include <GL/glext.h>
46 #endif
47 #undef XMD_H
49 #undef APIENTRY
50 #undef CALLBACK
51 #undef WINAPI
53 /* Redefines the constants */
54 #define CALLBACK __stdcall
55 #define WINAPI __stdcall
56 #define APIENTRY WINAPI
58 #endif /* HAVE_OPENGL */
60 #endif /* __WINE_WINE_GL_H */