| Line | |
|---|
| 1 | /* $Id: wine_gl.h,v 1.1 1999-05-24 20:19:22 ktk Exp $ */
|
|---|
| 2 |
|
|---|
| 3 | /* Wrapper for OpenGL includes...
|
|---|
| 4 | Copyright 1998 - Lionel Ulmer
|
|---|
| 5 |
|
|---|
| 6 | This wrapper is needed because Mesa uses also the CALLBACK / WINAPI
|
|---|
| 7 | constants. */
|
|---|
| 8 |
|
|---|
| 9 | #ifndef __WINE_GL_H
|
|---|
| 10 | #define __WINE_GL_H
|
|---|
| 11 |
|
|---|
| 12 | #include "config.h"
|
|---|
| 13 |
|
|---|
| 14 | #if defined(HAVE_LIBMESAGL) && defined(HAVE_GL_OSMESA_H)
|
|---|
| 15 |
|
|---|
| 16 | #define HAVE_MESAGL
|
|---|
| 17 |
|
|---|
| 18 | #undef APIENTRY
|
|---|
| 19 | #undef CALLBACK
|
|---|
| 20 | #undef WINAPI
|
|---|
| 21 |
|
|---|
| 22 | #include <GL/gl.h>
|
|---|
| 23 | /* These will need to have some #ifdef / #endif added to support
|
|---|
| 24 | more than the X11 using OSMesa target */
|
|---|
| 25 | #include <GL/osmesa.h>
|
|---|
| 26 |
|
|---|
| 27 | #undef APIENTRY
|
|---|
| 28 | #undef CALLBACK
|
|---|
| 29 | #undef WINAPI
|
|---|
| 30 |
|
|---|
| 31 | /* Redefines the constants */
|
|---|
| 32 | #define CALLBACK __stdcall
|
|---|
| 33 | #define WINAPI __stdcall
|
|---|
| 34 | #define APIENTRY WINAPI
|
|---|
| 35 |
|
|---|
| 36 | #else /* HAVE_LIBMESAGL */
|
|---|
| 37 |
|
|---|
| 38 | #undef HAVE_MESAGL
|
|---|
| 39 |
|
|---|
| 40 | #endif /* HAVE_LIBMESAGL */
|
|---|
| 41 |
|
|---|
| 42 | #endif /* __WINE_GL_H */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.