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

Author Topic: sf::Image subrect exceeds borders  (Read 8020 times)

0 Members and 1 Guest are viewing this topic.


  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
sf::Image subrect exceeds borders
« Reply #15 on: June 03, 2011, 03:13:35 pm »
I guess because of the new rendering system?

Yes, the sf::Renderer class will disappear and vertices won't be pre-transformed on the CPU anymore. Since aligning must happen after transforming... I'm stuck.

Do you have a good advice how to achieve such tasks on user side (maybe not now but if everything is finished)?

I'm afraid it's very complicated to align untransformed points. You have to take position/rotation/scale/origin in account, as well as the current view, viewport and size of the target.
Laurent Gomila - SFML developer