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

Author Topic: sf::String into Image (or sprite ?)  (Read 1864 times)

0 Members and 1 Guest are viewing this topic.

Flemmard

  • Newbie
  • *
  • Posts: 5
    • View Profile
sf::String into Image (or sprite ?)
« 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
sf::String into Image (or sprite ?)
« Reply #1 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.
Laurent Gomila - SFML developer

Flemmard

  • Newbie
  • *
  • Posts: 5
    • View Profile
sf::String into Image (or sprite ?)
« Reply #2 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 ! :)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
sf::String into Image (or sprite ?)
« Reply #3 on: April 06, 2010, 12:20:33 pm »
It is already possible in SFML 2.
Laurent Gomila - SFML developer

Flemmard

  • Newbie
  • *
  • Posts: 5
    • View Profile
sf::String into Image (or sprite ?)
« Reply #4 on: April 06, 2010, 12:29:32 pm »
oh? great to know !
I'll look at it ;)

 

anything