SFML community forums
General => Feature requests => Topic started 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.
-
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 ;)
-
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.
-
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?
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?
-
I guess I just didn't see the necessity. On the features page, all it shows is threading and timing.
-
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.