SFML community forums

Help => Graphics => Topic started by: Flemmard on April 06, 2010, 09:23:43 am

Title: sf::String into Image (or sprite ?)
Post by: Flemmard on April 06, 2010, 09:23:43 am
Hi !
I would like to 'draw' multiple String to an image (in order to make a scroll animation, for a GUI element "list"), is there a way to do this?
I would like to be able only a part of text in a square, without drawing the rest outside of this square ..
Thanks by advance
Title: sf::String into Image (or sprite ?)
Post by: Laurent on April 06, 2010, 11:12:22 am
Hi

This is not directly possible with SFML 1. However you can find workarounds with OpenGL functions.
Title: sf::String into Image (or sprite ?)
Post by: Flemmard on April 06, 2010, 11:24:31 am
It's what I thought :/
It would be great if it was possible in next releases ;)
Thanks for your fast answer ! :)
Title: sf::String into Image (or sprite ?)
Post by: Laurent on April 06, 2010, 12:20:33 pm
It is already possible in SFML 2.
Title: sf::String into Image (or sprite ?)
Post by: Flemmard on April 06, 2010, 12:29:32 pm
oh? great to know !
I'll look at it ;)