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

Author Topic: scaling with absolute values  (Read 1527 times)

0 Members and 1 Guest are viewing this topic.

Mitmischer 1703

  • Newbie
  • *
  • Posts: 8
    • View Profile
scaling with absolute values
« on: May 03, 2011, 10:19:14 pm »
hi!

How can I set the scale of a sprite in absolute values? I want to have a sprite which is always 400x400, no matter the original size.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
scaling with absolute values
« Reply #1 on: May 03, 2011, 10:29:07 pm »
Hi!

Please:

1- the forum has many sections to help categorizing the topics, use them; I'm really unhappy that a lot of users just throw their message in the "general discussions" forum

2- read the doc / tutorials:
Code: [Select]
sprite.Resize(400, 400);
Laurent Gomila - SFML developer

 

anything