1
Graphics / Multiple sprite-rotation
« on: July 02, 2009, 08:30:19 am »
Ah, my Bad!
I called Render of the compositing sprite with the target as parameter instead of calling Draw(&Drawable ) passing a reference to the compositing sprite. Clearly there is a difference.
Now it works like a clockwork! :lol:
Come to think of it, It was fully possible to override the protected virtual Render( ) with a public one exposing the method.
I called Render of the compositing sprite with the target as parameter instead of calling Draw(&Drawable ) passing a reference to the compositing sprite. Clearly there is a difference.
Code: [Select]
m_tSprite.Render(*m_pMainWindow); // Renders without parent obj. Translations and etc.
m_pMainWindow->Draw(m_tSprite); // Renders using translations and etc.
Now it works like a clockwork! :lol:
Come to think of it, It was fully possible to override the protected virtual Render( ) with a public one exposing the method.