render the wheels of the ForkLiftDemo

This commit is contained in:
erwincoumans
2015-03-28 12:36:57 -07:00
parent cba140431e
commit d605cc1cd7
4 changed files with 49 additions and 5 deletions

View File

@@ -255,7 +255,7 @@ void SimpleOpenGL3App::drawText3D( const char* txt, float worldPosX, float world
//float extraSpacing = 0.;
float startX = posX;
float startY = posY-g_DefaultLargeFont->m_CharHeight;
float startY = posY-g_DefaultLargeFont->m_CharHeight*size1;
while (txt[pos])
@@ -263,7 +263,7 @@ void SimpleOpenGL3App::drawText3D( const char* txt, float worldPosX, float world
int c = txt[pos];
//r.h = g_DefaultNormalFont->m_CharHeight;
//r.w = g_DefaultNormalFont->m_CharWidth[c]+extraSpacing;
float endX = startX+g_DefaultLargeFont->m_CharWidth[c];
float endX = startX+g_DefaultLargeFont->m_CharWidth[c]*size1;
float endY = posY;