Created basic physics-based OpenGL menu dialog system, with toggle/text and slider control.

This commit is contained in:
erwin.coumans
2009-09-26 01:44:09 +00:00
parent a482ebb7ab
commit 2f4f468f4d
10 changed files with 1690 additions and 125 deletions

View File

@@ -48,10 +48,10 @@ void GLDebugResetFont(int screenWidth,int screenHeight)
}
void GLDebugDrawString(int x,int y,const char* string)
{
const char* string2 = "test";
void GLDebugDrawStringInternal(int x,int y,const char* string, const btVector3& rgb)
{
const char* string2 = "test";
if (sTexture==-1)
{
GLDebugResetFont(sScreenWidth,sScreenHeight);
@@ -59,7 +59,7 @@ void GLDebugDrawString(int x,int y,const char* string)
if (strlen(string))
{
glColor3f(1.,1.,1.);
glColor3f(rgb.getX(),rgb.getY(),rgb.getZ());
float cx;
float cy;
@@ -128,6 +128,13 @@ void GLDebugDrawString(int x,int y,const char* string)
}
}
void GLDebugDrawString(int x,int y,const char* string)
{
btVector3 rgb(1,1,1);
GLDebugDrawStringInternal(x,y,string,rgb);
}
unsigned char sFontData[] =
{