00001 // 00002 // Copyright 1999-2006 by Structural Mechanics, Lund University. 00003 // 00004 // This library is free software; you can redistribute it and/or 00005 // modify it under the terms of the GNU Library General Public 00006 // License as published by the Free Software Foundation; either 00007 // version 2 of the License, or (at your option) any later version. 00008 // 00009 // This library is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 // Library General Public License for more details. 00013 // 00014 // You should have received a copy of the GNU Library General Public 00015 // License along with this library; if not, write to the Free Software 00016 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00017 // USA. 00018 // 00019 // Please report all bugs and problems to "ivf@byggmek.lth.se". 00020 // 00021 // 00022 // Written by Jonas Lindemann 00023 // 00024 00025 #ifndef _IvfGL_h_ 00026 #define _IvfGL_h_ 00027 00029 // This is ripped from the GLUT 3.7 header file. 00031 #if defined(_WIN32) 00032 00033 /* GLUT 3.7 now tries to avoid including <windows.h> 00034 to avoid name space pollution, but Win32's <GL/gl.h> 00035 needs APIENTRY and WINGDIAPI defined properly. */ 00036 # if 0 00037 # define WIN32_LEAN_AND_MEAN 00038 # include <windows.h> 00039 # else 00040 /* XXX This is from Win32's <windef.h> */ 00041 # ifndef APIENTRY 00042 # define GLUT_APIENTRY_DEFINED 00043 # if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) 00044 # define APIENTRY __stdcall 00045 # else 00046 # define APIENTRY 00047 # endif 00048 # endif 00049 /* XXX This is from Win32's <winnt.h> */ 00050 # ifndef CALLBACK 00051 # if (defined(_M_MRX000) || defined(_M_IX86) || defined(_M_ALPHA) || defined(_M_PPC)) && !defined(MIDL_PASS) 00052 # define CALLBACK __stdcall 00053 # else 00054 # define CALLBACK 00055 # endif 00056 # endif 00057 /* XXX This is from Win32's <wingdi.h> and <winnt.h> */ 00058 # ifndef WINGDIAPI 00059 # define GLUT_WINGDIAPI_DEFINED 00060 # define WINGDIAPI __declspec(dllimport) 00061 # endif 00062 /* XXX This is from Win32's <ctype.h> */ 00063 # ifndef _WCHAR_T_DEFINED 00064 typedef unsigned short wchar_t; 00065 # define _WCHAR_T_DEFINED 00066 # endif 00067 # endif 00068 #pragma warning (disable:4244) /* Disable bogus conversion warnings. */ 00069 #pragma warning (disable:4305) /* VC++ 5.0 version of above warning. */ 00070 #pragma warning (disable:4800) 00071 #pragma warning (disable:4005) 00072 #endif 00073 00074 // End rip... 00076 00077 #include <GL/gl.h> 00078 #include <GL/glu.h> 00079 00080 #endif 00081