Created basic physics-based OpenGL menu dialog system, with toggle/text and slider control.
This commit is contained in:
@@ -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[] =
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user