Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
Why is it there is no sprite.setOutline(thickness, color);?
Print
Pages: [
1
]
Author
Topic: Why is it there is no sprite.setOutline(thickness, color);? (Read 1224 times)
0 Members and 1 Guest are viewing this topic.
magneonx
Full Member
Posts: 141
Why is it there is no sprite.setOutline(thickness, color);?
«
on:
June 29, 2013, 10:44:48 am »
I somehow need this kind of functionality for my collision detection and developers mode.
Logged
Nexus
SFML Team
Hero Member
Posts: 6287
Thor Developer
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
.
Logged
Zloxx II
: action platformer
Thor Library
: particle systems, animations, dot products, ...
SFML Game Development
:
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
Why is it there is no sprite.setOutline(thickness, color);?