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

Author Topic: Why is it there is no sprite.setOutline(thickness, color);?  (Read 1066 times)

0 Members and 1 Guest are viewing this topic.

magneonx

  • Full Member
  • ***
  • Posts: 141
    • MSN Messenger - magnumneon04@hotmail.com
    • View Profile
I somehow need this kind of functionality for my collision detection and developers mode.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: Why is it there is no sprite.setOutline(thickness, color);?
« Reply #1 on: June 29, 2013, 11:03:27 am »
Collision is usually not related to graphics, why do you think you need to set the outline? Pixel-perfect collision detection is rarely what you want.

Apart from that, you can just use a sf::RectangleShape.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: