blob: 736d9d3a10b914764ae4001615f1e9332472c6e7 [file] [log] [blame]
Lionel Ulmer5ff00771999-01-03 17:00:19 +00001/* 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
Patrik Stridvall857eb391999-06-12 18:36:54 +00007#ifndef __WINE_WINE_GL_H
8#define __WINE_WINE_GL_H
Lionel Ulmer5ff00771999-01-03 17:00:19 +00009
Lionel Ulmera1d6d241999-01-30 15:54:43 +000010#include "config.h"
11
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000012#if defined(HAVE_OPENGL)
Lionel Ulmera1d6d241999-01-30 15:54:43 +000013
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000014#include "x11drv.h"
15
16/* As GLX relies on X, this is needed */
17#define ENTER_GL() EnterCriticalSection( &X11DRV_CritSection )
18#define LEAVE_GL() LeaveCriticalSection( &X11DRV_CritSection )
Lionel Ulmer5ff00771999-01-03 17:00:19 +000019
20#undef APIENTRY
21#undef CALLBACK
22#undef WINAPI
23
Lionel Ulmer7be462d2000-01-15 22:24:47 +000024#define XMD_H /* This is to prevent the Xmd.h inclusion bug to happen :-/ */
Lionel Ulmer5ff00771999-01-03 17:00:19 +000025#include <GL/gl.h>
Lionel Ulmerad725851999-05-13 18:53:05 +000026#include <GL/glx.h>
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000027#include <GL/glext.h>
Lionel Ulmer7be462d2000-01-15 22:24:47 +000028#undef XMD_H
Lionel Ulmer5ff00771999-01-03 17:00:19 +000029
30#undef APIENTRY
31#undef CALLBACK
32#undef WINAPI
33
34/* Redefines the constants */
35#define CALLBACK __stdcall
36#define WINAPI __stdcall
37#define APIENTRY WINAPI
38
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000039#endif /* HAVE_OPENGL */
Lionel Ulmer5ff00771999-01-03 17:00:19 +000040
Patrik Stridvall857eb391999-06-12 18:36:54 +000041#endif /* __WINE_WINE_GL_H */