1999-01-03 18:00:19 +01:00
|
|
|
/* Wrapper for OpenGL includes...
|
|
|
|
Copyright 1998 - Lionel Ulmer
|
|
|
|
|
|
|
|
This wrapper is needed because Mesa uses also the CALLBACK / WINAPI
|
|
|
|
constants. */
|
|
|
|
|
1999-06-12 20:36:54 +02:00
|
|
|
#ifndef __WINE_WINE_GL_H
|
|
|
|
#define __WINE_WINE_GL_H
|
1999-01-03 18:00:19 +01:00
|
|
|
|
1999-01-30 16:54:43 +01:00
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#if defined(HAVE_LIBMESAGL) && defined(HAVE_GL_OSMESA_H)
|
|
|
|
|
|
|
|
#define HAVE_MESAGL
|
1999-01-03 18:00:19 +01:00
|
|
|
|
|
|
|
#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>
|
1999-05-13 20:53:05 +02:00
|
|
|
#include <GL/glx.h>
|
1999-01-03 18:00:19 +01:00
|
|
|
|
|
|
|
#undef APIENTRY
|
|
|
|
#undef CALLBACK
|
|
|
|
#undef WINAPI
|
|
|
|
|
|
|
|
/* Redefines the constants */
|
|
|
|
#define CALLBACK __stdcall
|
|
|
|
#define WINAPI __stdcall
|
|
|
|
#define APIENTRY WINAPI
|
|
|
|
|
1999-01-30 16:54:43 +01:00
|
|
|
#else /* HAVE_LIBMESAGL */
|
|
|
|
|
|
|
|
#undef HAVE_MESAGL
|
|
|
|
|
|
|
|
#endif /* HAVE_LIBMESAGL */
|
1999-01-03 18:00:19 +01:00
|
|
|
|
1999-06-12 20:36:54 +02:00
|
|
|
#endif /* __WINE_WINE_GL_H */
|