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

Author Topic: Use sf::Shape or my own classes for textured shapes  (Read 1072 times)

0 Members and 1 Guest are viewing this topic.

xmax3

  • Newbie
  • *
  • Posts: 6
    • View Profile
Use sf::Shape or my own classes for textured shapes
« on: May 23, 2014, 05:27:25 pm »
Hello ! :D
I want to have a textured shape (circle and convex) and I wonder if I am better to use the derived types of sf::Shape or to implement my own classes (with vertices, yeah I know sf::Shape make use of vertices too).

I ask that because I read on another topic that there's advantages to use sf::Sprite instead of sf::RectangleShape (A little precision about that would be appreciated  ;D ).

Thanks for your answers !
Hello ! Just to advise you that my first language is french, so my english may not be perfect. I want to improve it, so I prefer to go in the english forums. Thank you!

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Use sf::Shape or my own classes for textured shapes
« Reply #1 on: May 23, 2014, 05:29:17 pm »
Since you don't seem to have an actual reason to write your own class, use the SFML ones :P
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: