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

Author Topic: SFML 2 Sprite Scaling  (Read 1101 times)

0 Members and 1 Guest are viewing this topic.

Redemption

  • Newbie
  • *
  • Posts: 4
    • View Profile
SFML 2 Sprite Scaling
« on: October 30, 2012, 02:41:08 am »
Hey folks,

I recently upgraded to SFML 2 from 1.6, and noticed a difference in the graphics package. In the old one, when I used "Sprite.setScale" and enlarged the image, it seemed to do some sort of interpolation to create a nice smooth image. In the new one, it just enlarges the pixels so I have an extremely pixelated images. Is there a way to do it the old way?

Thanks!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML 2 Sprite Scaling
« Reply #1 on: October 30, 2012, 08:07:41 am »
texture.setSmooth(true)
Laurent Gomila - SFML developer