SFML community forums
Help => Graphics => Topic started by: Imbue on May 20, 2009, 01:12:11 am
-
Is it possible to mirror sf::String? I expected SetScale(-1.0f, 1.0f) to do it, but it seems to have no effect.
Thanks.
-
It's currently not possible.
-
Could there be done something by modifying the glViewport? If a direct way was too intrusive, creating a new derivate of sf::Drawable might be an alternative - assumed that you get enough control about viewport, but for this I know too little about SFML internals.
-
I guess you can setup a mirrored sf::View and use it to draw your string, but I'm not sure about the result.
-
Is there any chance that in the future SetScale(-1) will work for mirroring? It should just be a small change in the way your matrices are calculated.
Thanks.
-
I don't really remember why, but negative scales were disallowed on purpose.
-
So any chance of changing it? A negative glScalef does mirror, so some people might expect it.
It's a bit annoying to have to change the view port to mirror something.
Thanks.
-
Ok, I'll think about it.