Sweden-Number/include/wine_gl.h

44 lines
849 B
C
Raw Normal View History

/* Wrapper for OpenGL includes...
Copyright 1998 - Lionel Ulmer
This wrapper is needed because Mesa uses also the CALLBACK / WINAPI
constants. */
#ifndef __WINE_WINE_GL_H
#define __WINE_WINE_GL_H
#include "config.h"
2000-05-12 22:18:14 +02:00
#if defined(HAVE_OPENGL)
#include "ts_xlib.h"
2000-05-12 22:18:14 +02:00
/* As GLX relies on X, this is needed */
#define ENTER_GL() wine_tsx11_lock()
#define LEAVE_GL() wine_tsx11_unlock()
#undef APIENTRY
#undef CALLBACK
#undef WINAPI
#define XMD_H /* This is to prevent the Xmd.h inclusion bug to happen :-/ */
#include <GL/gl.h>
#include <GL/glx.h>
#ifdef HAVE_GL_GLEXT_H
# include <GL/glext.h>
#endif
#undef XMD_H
#undef APIENTRY
#undef CALLBACK
#undef WINAPI
/* Redefines the constants */
#define CALLBACK __stdcall
#define WINAPI __stdcall
#define APIENTRY WINAPI
2000-05-12 22:18:14 +02:00
#endif /* HAVE_OPENGL */
#endif /* __WINE_WINE_GL_H */