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

Author Topic: sf::Sprite instances don't auto-resize  (Read 3232 times)

0 Members and 1 Guest are viewing this topic.

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
sf::Sprite instances don't auto-resize
« on: July 22, 2009, 06:34:13 am »
I KNOW this has been posted before, but could someone explain WHY sf::Sprite Instances don't auto-resize themselves to the size of the Image that they are set to with SetImage? It's annoying to do it manually with every Sprite/Image whenever I reload an image. I'm using SFML 1.4 because Ubuntu 9.04's Repos haven't been updated with SFML 1.5.
I use the latest build of SFML2

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
sf::Sprite instances don't auto-resize
« Reply #1 on: July 22, 2009, 07:51:12 am »
Quote
I KNOW this has been posted before

So you know the answer. Everything you have to know is already on this forum.
Laurent Gomila - SFML developer

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
sf::Sprite instances don't auto-resize
« Reply #2 on: July 22, 2009, 08:32:43 am »
Quote from: "Laurent"
Quote
I KNOW this has been posted before

So you know the answer. Everything you have to know is already on this forum.
I meant I know that this same problem has been posted before. That thread has no explanation as to WHY sf::Sprite doesn't have an auto-resizing feature yet. I checked the changelogs of SFML 1.5 and that doesn't appea rto have the feature added yet either.
I use the latest build of SFML2

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
sf::Sprite instances don't auto-resize
« Reply #3 on: July 22, 2009, 08:45:52 am »
The beginning of this discussion gives relevant informations:
http://www.sfml-dev.org/forum/viewtopic.php?t=821
Laurent Gomila - SFML developer

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
sf::Sprite instances don't auto-resize
« Reply #4 on: July 22, 2009, 07:17:54 pm »
Quote from: "Laurent"
The beginning of this discussion gives relevant informations:
http://www.sfml-dev.org/forum/viewtopic.php?t=821
Alright, thanks! Sorry for disturbing you! Keep up the great work!
I use the latest build of SFML2

 

anything