1999-01-03 18:00:19 +01:00
|
|
|
/* Wrapper for OpenGL includes...
|
2002-03-10 00:29:33 +01:00
|
|
|
* Copyright 1998 - Lionel Ulmer
|
|
|
|
*
|
|
|
|
* This wrapper is needed because Mesa uses also the CALLBACK / WINAPI
|
|
|
|
* constants.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
1999-01-03 18:00:19 +01:00
|
|
|
|
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
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
#ifndef __WINE_CONFIG_H
|
|
|
|
# error You must include config.h to use this header
|
|
|
|
#endif
|
1999-01-30 16:54:43 +01:00
|
|
|
|
2000-05-12 22:18:14 +02:00
|
|
|
#if defined(HAVE_OPENGL)
|
1999-01-30 16:54:43 +01:00
|
|
|
|
2001-01-15 23:31:24 +01:00
|
|
|
#include "ts_xlib.h"
|
2000-05-12 22:18:14 +02:00
|
|
|
|
|
|
|
/* As GLX relies on X, this is needed */
|
2001-01-15 23:31:24 +01:00
|
|
|
#define ENTER_GL() wine_tsx11_lock()
|
|
|
|
#define LEAVE_GL() wine_tsx11_unlock()
|
1999-01-03 18:00:19 +01:00
|
|
|
|
|
|
|
#undef APIENTRY
|
|
|
|
#undef CALLBACK
|
|
|
|
#undef WINAPI
|
|
|
|
|
2000-01-15 23:24:47 +01:00
|
|
|
#define XMD_H /* This is to prevent the Xmd.h inclusion bug to happen :-/ */
|
1999-01-03 18:00:19 +01:00
|
|
|
#include <GL/gl.h>
|
1999-05-13 20:53:05 +02:00
|
|
|
#include <GL/glx.h>
|
2000-08-08 22:46:50 +02:00
|
|
|
#ifdef HAVE_GL_GLEXT_H
|
|
|
|
# include <GL/glext.h>
|
|
|
|
#endif
|
2000-01-15 23:24:47 +01:00
|
|
|
#undef XMD_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
|
|
|
|
|
2000-05-12 22:18:14 +02:00
|
|
|
#endif /* HAVE_OPENGL */
|
1999-01-03 18:00:19 +01:00
|
|
|
|
1999-06-12 20:36:54 +02:00
|
|
|
#endif /* __WINE_WINE_GL_H */
|