[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/libs/kgllib/examples/earth
From:       Rivo Laks <rivolaks () hot ! ee>
Date:       2008-02-01 12:49:46
Message-ID: 1201870186.700439.30026.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 769440 by rivol:

Add a hint about using the mouse

 M  +5 -0      earth.cpp  


--- trunk/playground/libs/kgllib/examples/earth/earth.cpp #769439:769440
@@ -90,6 +90,11 @@
     Vector3f pos = trackball.transform(Vector3f(3, 0, 0));
     textRenderer()->begin(this);
     textRenderer()->draw(5, ty += 12, QString("pos: (%1, %2, \
%3)").arg(pos.x()).arg(pos.y()).arg(pos.z())); +    // Show hint during the first 5 \
seconds, then fade it out +    if (fpsCounter()->totalTimeElapsed() < 6.0f) {
+        glColor4f(1, 1, 1, qMax(0.0f, 6 - fpsCounter()->totalTimeElapsed()));
+        textRenderer()->draw(5, height() - 30, "Hint: you can move the Earth using \
the mouse"); +    }
     textRenderer()->end();
     // Repaint for animation
     QTimer::singleShot(20, this, SLOT(update()));


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic