mirror of
https://github.com/edubart/otclient.git
synced 2025-12-02 16:06:51 +01:00
Widgets can now rotate :O
This commit is contained in:
@@ -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();
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user