add preliminary glut replacement test for Bullet 2.x demos

This commit is contained in:
Erwin Coumans
2014-07-03 16:42:50 -07:00
parent 87d44cbb74
commit bae303c5da
12 changed files with 416 additions and 37 deletions

View File

@@ -41,7 +41,7 @@ subject to the following restrictions:
#include <GL/glu.h>
#else
#include <GL/gl.h>
#include <GL/glut.h>
#include <GL/glu.h>
#endif
#endif
@@ -59,6 +59,19 @@ static int sScreenHeight = -1;
void GLDebugResetFont(int screenWidth,int screenHeight)
{
if (screenWidth==0 && screenHeight==0)
{
sScreenWidth = screenWidth;
sScreenHeight = screenHeight;
if (sTexturesInitialized)
{
glDeleteTextures(1, &sTexture);
glBindTexture(GL_TEXTURE_2D,0);
sTexturesInitialized = false;
}
return;
}
if ((sScreenWidth == screenWidth) && (sScreenHeight == screenHeight))
return;