SFML community forums

Help => Graphics => Topic started by: sofakng on January 13, 2009, 08:58:39 pm

Title: Does SFML support texture-filled polygons? ...and collision?
Post by: sofakng on January 13, 2009, 08:58:39 pm
Two quick questions...

1) Does SFML support the creation of texture-filled polygons (or other shapes)?  If not, how would I go about doing this?

2) Does SFML support collision detection in any way?  If not are there any libraries available to handle this?  (for .NET)

Thanks!
Title: Does SFML support texture-filled polygons? ...and collision?
Post by: Tank on January 13, 2009, 09:15:52 pm
1) No, not directly. You can archieve this by directly using OpenGL together with SFML for setting the texture.
2) No, it doesn't. I'm sure there're libraries, but since I never needed one, I can't tell you any names.
Title: Does SFML support texture-filled polygons? ...and collision?
Post by: Laurent on January 13, 2009, 09:21:51 pm
Box2D is a 2D physics library. I never tried it, but it seems to be very popular.
Title: Does SFML support texture-filled polygons? ...and collision?
Post by: sofakng on January 13, 2009, 09:52:36 pm
Thanks for the quick replies!

What about adding support for the SPARK (http://spark.developpez.com/) (or other) particle engine with the .NET bindings?  I only mention SPARK because it directly integrates with SFML but only with the C++ side.
Title: Does SFML support texture-filled polygons? ...and collision?
Post by: Laurent on January 13, 2009, 09:59:44 pm
You should rather ask its author ;)