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

Author Topic: Does SFML support texture-filled polygons? ...and collision?  (Read 3011 times)

0 Members and 1 Guest are viewing this topic.

sofakng

  • Newbie
  • *
  • Posts: 18
    • View Profile
Does SFML support texture-filled polygons? ...and collision?
« 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!

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Does SFML support texture-filled polygons? ...and collision?
« Reply #1 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Does SFML support texture-filled polygons? ...and collision?
« Reply #2 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.
Laurent Gomila - SFML developer

sofakng

  • Newbie
  • *
  • Posts: 18
    • View Profile
Does SFML support texture-filled polygons? ...and collision?
« Reply #3 on: January 13, 2009, 09:52:36 pm »
Thanks for the quick replies!

What about adding support for the SPARK (or other) particle engine with the .NET bindings?  I only mention SPARK because it directly integrates with SFML but only with the C++ side.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Does SFML support texture-filled polygons? ...and collision?
« Reply #4 on: January 13, 2009, 09:59:44 pm »
You should rather ask its author ;)
Laurent Gomila - SFML developer

 

anything