Widgets can now rotate :O

This commit is contained in:
Eduardo Bart
2013-01-19 14:44:07 -02:00
parent 2fcaf2cc40
commit f389c3b3fe
8 changed files with 41 additions and 3 deletions

View File

@@ -61,13 +61,14 @@ void LocalPlayer::draw(const Point& dest, float scaleFactor, bool animate, Light
{
Creature::draw(dest, scaleFactor, animate, lightView);
// This is a test to rotation, translate and scale transformations.
/*
// This is a test to rotation, translate and scale transformations.
Point rotateOffset = dest;
rotateOffset += ((animate ? m_walkOffset : Point(0,0)) + Point(16,16)) * scaleFactor;
g_painter->pushTransformMatrix();
g_painter->rotate(rotateOffset, Fw::pi * std::sin(g_clock.millis()/1000.0f));
Creature::draw(dest, scaleFactor, animate, lightView);
g_painter->resetTransformMatrix();
g_painter->popTransformMatrix();
*/
}