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

Author Topic: Setting repeat frequency and changing order of rot/scale?  (Read 2227 times)

0 Members and 1 Guest are viewing this topic.

Manux

  • Newbie
  • *
  • Posts: 23
    • View Profile
Setting repeat frequency and changing order of rot/scale?
« on: January 17, 2010, 10:43:37 pm »
Hello, I have two little questions,

first is it possible to change the repetition frequency of a key being held?
(the equivalent of SDL_EnableKeyRepeat(delay,interval) )

and second, I am trying to create an isometric effect on a Sprite, it is possible to do so by rotating clockwise by 45 degrees and then scaling the height by half. The problem is SFML seems to scale first and rotate after, which does not create the same effect.
Is there any way to change this or must I  do the transformations one by one on an Image(is that even possible?)

Thanks for your time!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Setting repeat frequency and changing order of rot/scale?
« Reply #1 on: January 17, 2010, 10:46:10 pm »
Hi

Quote
first is it possible to change the repetition frequency of a key being held?
(the equivalent of SDL_EnableKeyRepeat(delay,interval) )

No, it uses the OS settings.

Quote
and second, I am trying to create an isometric effect on a Sprite, it is possible to do so by rotating clockwise by 45 degrees and then scaling the height by half. The problem is SFML seems to scale first and rotate after, which does not create the same effect.
Is there any way to change this or must I do the transformations one by one on an Image(is that even possible?)

Not possible, but I wonder if it would look nice. If you're doing an isometric game then you should probably draw your sprites directly as they will look in the game.
Laurent Gomila - SFML developer

Manux

  • Newbie
  • *
  • Posts: 23
    • View Profile
Setting repeat frequency and changing order of rot/scale?
« Reply #2 on: January 17, 2010, 10:50:51 pm »
Quote from: "Laurent"


No, it uses the OS settings.

Hmm, I'll search that way then.

Quote

Not possible, but I wonder if it would look nice. If you're doing an isometric game then you should probably draw your sprites directly as they will look in the game.

I planned to use it for text, and indeed I don't think it would look nice on normal images.
Do you think I could do it with OpenGL calls?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Setting repeat frequency and changing order of rot/scale?
« Reply #3 on: January 17, 2010, 11:04:52 pm »
Quote
Do you think I could do it with OpenGL calls?

Absolutely, you can do anything if you use OpenGL directly.
Laurent Gomila - SFML developer

 

anything