Back to index

supertuxkart  0.5+dfsg1
GlutStuff.h
Go to the documentation of this file.
00001 /*
00002 Bullet Continuous Collision Detection and Physics Library
00003 Copyright (c) 2003-2006 Erwin Coumans  http://continuousphysics.com/Bullet/
00004 
00005 This software is provided 'as-is', without any express or implied warranty.
00006 In no event will the authors be held liable for any damages arising from the use of this software.
00007 Permission is granted to anyone to use this software for any purpose, 
00008 including commercial applications, and to alter it and redistribute it freely, 
00009 subject to the following restrictions:
00010 
00011 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
00012 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
00013 3. This notice may not be removed or altered from any source distribution.
00014 */
00015 #ifndef GLUT_STUFF_H
00016 #define GLUT_STUFF_H
00017 
00018 #ifdef WIN32//for glut.h
00019 #include <windows.h>
00020 #endif
00021 
00022 //think different
00023 #if defined(__APPLE__) && !defined (VMDMESA)
00024 #include <OpenGL/gl.h>
00025 #include <OpenGL/glu.h>
00026 #include <GLUT/glut.h>
00027 #else
00028 #include <GL/glut.h>
00029 #endif
00030 
00031 #if BT_USE_FREEGLUT
00032 #include "GL/freeglut_ext.h" //to be able to return from glutMainLoop()
00033 #endif
00034 
00035 
00036 class DemoApplication;
00037 
00038 int glutmain(int argc, char **argv,int width,int height,const char* title,DemoApplication* demoApp);
00039 
00040 #if defined(BT_USE_DOUBLE_PRECISION)
00041 #define btglLoadMatrix glLoadMatrixd
00042 #define btglMultMatrix glMultMatrixd
00043 #define btglColor3 glColor3d
00044 #define btglVertex3 glVertex3d
00045 #else
00046 #define btglLoadMatrix glLoadMatrixf
00047 #define btglMultMatrix glMultMatrixf
00048 #define btglColor3 glColor3f
00049 #define btglVertex3 glVertex3d
00050 #endif
00051 
00052 #endif //GLUT_STUFF_H