render the wheels of the ForkLiftDemo
This commit is contained in:
@@ -30,6 +30,12 @@ struct MyGraphicsPhysicsBridge : public GraphicsPhysicsBridge
|
||||
:m_glApp(glApp), m_debugDraw(0), m_curColor(0)
|
||||
{
|
||||
}
|
||||
|
||||
virtual struct CommonRenderInterface* getRenderInterface()
|
||||
{
|
||||
return m_glApp->m_renderer;
|
||||
}
|
||||
|
||||
virtual void createRigidBodyGraphicsObject(btRigidBody* body, const btVector3& color)
|
||||
{
|
||||
createCollisionObjectGraphicsObject(body,color);
|
||||
|
||||
@@ -48,6 +48,10 @@ struct GraphicsPhysicsBridge
|
||||
return 0;
|
||||
}
|
||||
|
||||
virtual struct CommonRenderInterface* getRenderInterface()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
virtual void setUpAxis(int axis)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user