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

Author Topic: Rendering Sprites: Best practices  (Read 1706 times)

0 Members and 1 Guest are viewing this topic.

Grimshaw

  • Hero Member
  • *****
  • Posts: 631
  • Nephilim SDK
    • View Profile
Rendering Sprites: Best practices
« on: February 07, 2011, 04:44:03 pm »
Hello, i got myself questioning myself what would be the best practice to render equal sprites.

I mean, is it better to have multiple sprite objects, for different transformations of the same sprite, or should it be faster to draw sprite, setposition, draw, setposition,draw ?

What do you recommend for such cases?

Thanks

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Rendering Sprites: Best practices
« Reply #1 on: February 07, 2011, 09:09:49 pm »
Transforming a sprite is almost free, so it doesn't really matter, choose the best solution design-wise.
Laurent Gomila - SFML developer

 

anything