SFML community forums

Help => Graphics => Topic started by: Metapyziks on December 28, 2009, 05:51:45 pm

Title: Drawing text onto an image?
Post by: Metapyziks on December 28, 2009, 05:51:45 pm
Is it currently possible to draw from a sf::String onto a sf::Image?

I have a lot of tiles in my game which can have numbers written on them, but having lots of sf::Strings being drawn at once can slow it down a lot. If I could use a sf::Image as a buffer and draw the strings to it only when they change, I could speed the game up greatly.

Thanks in advance.
Title: Drawing text onto an image?
Post by: Laurent on December 28, 2009, 05:52:34 pm
Not currently, only in SFML 2.
Title: Drawing text onto an image?
Post by: Metapyziks on December 28, 2009, 05:53:59 pm
Quote from: "Laurent"
Not currently, only in SFML 2.


Ok, thanks. Is SFML2 available through the SVN? I think its time for me to upgrade.
Title: Drawing text onto an image?
Post by: Laurent on December 28, 2009, 05:56:34 pm
Quote
Is SFML2 available through the SVN?

Absolutely, in branches/sfml2.
Title: Drawing text onto an image?
Post by: Metapyziks on December 28, 2009, 05:59:08 pm
Quote from: "Laurent"
Quote
Is SFML2 available through the SVN?

Absolutely, in branches/sfml2.

Thanks again, and thanks for SFML too! Really great library for easy game design.
Title: Drawing text onto an image?
Post by: Metapyziks on December 28, 2009, 06:03:42 pm
Hmm, when I try to use TortoiseSVN to download it, I get this error:
Code: [Select]
Repository moved temporarily to '/viewvc/sfml/branches/sfml2/'; please relocate

What should I do?
Title: Drawing text onto an image?
Post by: Laurent on December 28, 2009, 06:04:40 pm
Read this
http://www.sfml-dev.org/wiki/en/tutorials/getsvnversion

;)
Title: Drawing text onto an image?
Post by: Metapyziks on December 28, 2009, 06:07:38 pm
Quote from: "Laurent"
Read this
http://www.sfml-dev.org/wiki/en/tutorials/getsvnversion

;)

Whoops, I should have looked around more. Thanks for your help once again