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++)
{
unsigned char ch = string[i]-32;
char ch = string[i]-32;
if (ch>=0)
{
cx=float(ch%16) * 1./16.f;

View File

@@ -21,3 +21,4 @@ void GLDebugDrawString(int x,int y,const char* string);
void GLDebugResetFont(int screenWidth,int screenHeight);
#endif //BT_DEBUG_FONT_H

View File

@@ -67,3 +67,4 @@ void OGL_displaylist_register_shape(btCollisionShape * shape);
void OGL_displaylist_clean();
#endif //GL_SHAPE_DRAWER_H

View File

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

View File

@@ -31,3 +31,4 @@ public:
};
#endif //GLUT_DEMO_APPLICATION_H

View File

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

View File

@@ -37,3 +37,4 @@ class btActionInterface
};
#endif //_BT_ACTION_INTERFACE_H