wine/include/wine_gl.h
1999-05-13 18:53:05 +00:00

41 lines
786 B
C

/* Wrapper for OpenGL includes...
Copyright 1998 - Lionel Ulmer
This wrapper is needed because Mesa uses also the CALLBACK / WINAPI
constants. */
#ifndef __WINE_GL_H
#define __WINE_GL_H
#include "config.h"
#if defined(HAVE_LIBMESAGL) && defined(HAVE_GL_OSMESA_H)
#define HAVE_MESAGL
#undef APIENTRY
#undef CALLBACK
#undef WINAPI
#include <GL/gl.h>
/* These will need to have some #ifdef / #endif added to support
more than the X11 using OSMesa target */
#include <GL/osmesa.h>
#include <GL/glx.h>
#undef APIENTRY
#undef CALLBACK
#undef WINAPI
/* Redefines the constants */
#define CALLBACK __stdcall
#define WINAPI __stdcall
#define APIENTRY WINAPI
#else /* HAVE_LIBMESAGL */
#undef HAVE_MESAGL
#endif /* HAVE_LIBMESAGL */
#endif /* __WINE_GL_H */