compile fixes for Linux

This commit is contained in:
erwin.coumans
2009-07-14 19:43:22 +00:00
parent 60c107b7a7
commit a27b349dd0
7 changed files with 12 additions and 7 deletions

View File

@@ -88,7 +88,7 @@ void GLDebugDrawString(int x,int y,const char* string)
for (int i=0;i<strlen(string);i++) for (int i=0;i<strlen(string);i++)
{ {
unsigned char ch = string[i]-32; char ch = string[i]-32;
if (ch>=0) if (ch>=0)
{ {
cx=float(ch%16) * 1./16.f; cx=float(ch%16) * 1./16.f;

View File

@@ -20,4 +20,5 @@ subject to the following restrictions:
void GLDebugDrawString(int x,int y,const char* string); void GLDebugDrawString(int x,int y,const char* string);
void GLDebugResetFont(int screenWidth,int screenHeight); void GLDebugResetFont(int screenWidth,int screenHeight);
#endif //BT_DEBUG_FONT_H #endif //BT_DEBUG_FONT_H

View File

@@ -66,4 +66,5 @@ public:
void OGL_displaylist_register_shape(btCollisionShape * shape); void OGL_displaylist_register_shape(btCollisionShape * shape);
void OGL_displaylist_clean(); void OGL_displaylist_clean();
#endif //GL_SHAPE_DRAWER_H #endif //GL_SHAPE_DRAWER_H

View File

@@ -81,4 +81,5 @@ void GlutDemoApplication::swapBuffers()
} }
#endif //_WINDOWS #endif //_WINDOWS

View File

@@ -30,4 +30,5 @@ public:
virtual void updateModifierKeys(); virtual void updateModifierKeys();
}; };
#endif //GLUT_DEMO_APPLICATION_H #endif //GLUT_DEMO_APPLICATION_H

View File

@@ -27,7 +27,7 @@ subject to the following restrictions:
#else #else
#include <GL/glut.h> #include <GL/glut.h>
#ifndef _WINDOWS #ifdef _WINDOWS
#include <windows.h> #include <windows.h>
#include <GL/gl.h> #include <GL/gl.h>
#include <GL/glu.h> #include <GL/glu.h>

View File

@@ -36,4 +36,5 @@ class btActionInterface
}; };
#endif //_BT_ACTION_INTERFACE_H #endif //_BT_ACTION_INTERFACE_H