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

Author Topic: View and sprites scaling  (Read 1101 times)

0 Members and 1 Guest are viewing this topic.

ilgamer

  • Newbie
  • *
  • Posts: 2
    • View Profile
View and sprites scaling
« on: June 27, 2013, 10:51:46 am »
Hi everyone. I have a situation when needs to draw a sprite which doesn't need to be scaled when I use view.
I have an idea with scaling the texture, but hope that there is more easiest solution.

Hope you will help me to find it.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: View and sprites scaling
« Reply #1 on: June 27, 2013, 11:17:56 am »
I'm not sure if I understood your problem. If you're working on one view (zooming/rotating/etc) and want an object that stays static, you can simply use another unchanged view. The official tutorial explains this quite nicely. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

ilgamer

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: View and sprites scaling
« Reply #2 on: June 27, 2013, 03:50:43 pm »
So, I can set not changed view while drawing a sprite and the set the main view, right?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: View and sprites scaling
« Reply #3 on: June 27, 2013, 04:17:55 pm »
Yes, just read the tutorisl! :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything