Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Drawing text onto an image?  (Read 2842 times)

0 Members and 1 Guest are viewing this topic.

Metapyziks

  • Newbie
  • *
  • Posts: 33
    • View Profile
Drawing text onto an image?
« 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Drawing text onto an image?
« Reply #1 on: December 28, 2009, 05:52:34 pm »
Not currently, only in SFML 2.
Laurent Gomila - SFML developer

Metapyziks

  • Newbie
  • *
  • Posts: 33
    • View Profile
Drawing text onto an image?
« Reply #2 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Drawing text onto an image?
« Reply #3 on: December 28, 2009, 05:56:34 pm »
Quote
Is SFML2 available through the SVN?

Absolutely, in branches/sfml2.
Laurent Gomila - SFML developer

Metapyziks

  • Newbie
  • *
  • Posts: 33
    • View Profile
Drawing text onto an image?
« Reply #4 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.

Metapyziks

  • Newbie
  • *
  • Posts: 33
    • View Profile
Drawing text onto an image?
« Reply #5 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Drawing text onto an image?
« Reply #6 on: December 28, 2009, 06:04:40 pm »
Laurent Gomila - SFML developer

Metapyziks

  • Newbie
  • *
  • Posts: 33
    • View Profile
Drawing text onto an image?
« Reply #7 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