SFML community forums

General => Feature requests => Topic started by: FierceForm on July 05, 2011, 04:57:46 pm

Title: Make SFML Window not depend on SFML System
Post by: FierceForm on July 05, 2011, 04:57:46 pm
Most of the stuff in the SFML System library I can get with something like Boost (Boost::Thread, etc). I don't really need anything in the SFML System library and would prefer to only link the SFML Window library, however the SFML Window library depends on the SFML System library. I think that SFML System stuff should be independent of Window, so I can use the SFML Window library independently.
Title: Make SFML Window not depend on SFML System
Post by: Laurent on July 05, 2011, 05:02:41 pm
Quote
Most of the stuff in the SFML System library I can get with something like Boost

But not sfml-window, it gets these things from sfml-system ;)
Title: Make SFML Window not depend on SFML System
Post by: FierceForm on July 05, 2011, 05:12:58 pm
Move the stuff from SFML System that SFML Window requires into SFML Window? I think the only thing you might actually need is timing, I'm not sure that you'd need threading.
Title: Make SFML Window not depend on SFML System
Post by: Laurent on July 05, 2011, 06:34:35 pm
Quote
Move the stuff from SFML System that SFML Window requires into SFML Window?

And then make sfml-network and sfml-audio depend on sfml-window?

Quote
I think the only thing you might actually need is timing

In SFML 2, sfml-window uses the following classes of sfml-system:
- sf::Clock
- sf::Err
- possibly sf::Mutex and sf::Lock
- sf::NonCopyable
- sf::Sleep function
- sf::Vector2

sfml-system gathers things that are shared by multiple modules, it's a kind of mandatory dependency (should be called sfml-core by the way).

What's the problem with depending on sfml-system?
Title: Make SFML Window not depend on SFML System
Post by: FierceForm on July 05, 2011, 06:54:50 pm
I guess I just didn't see the necessity. On the features page, all it shows is threading and timing.
Title: Make SFML Window not depend on SFML System
Post by: Laurent on July 05, 2011, 10:00:02 pm
Quote
I guess I just didn't see the necessity. On the features page, all it shows is threading and timing.

Yes, like I said sfml-system is the base for all other modules, it contains many unrelated classes that are used elsewhere.