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

Author Topic: Make SFML Window not depend on SFML System  (Read 2463 times)

0 Members and 1 Guest are viewing this topic.

FierceForm

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • Email
Make SFML Window not depend on SFML System
« 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.
-FierceForm

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Make SFML Window not depend on SFML System
« Reply #1 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 ;)
Laurent Gomila - SFML developer

FierceForm

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • Email
Make SFML Window not depend on SFML System
« Reply #2 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.
-FierceForm

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Make SFML Window not depend on SFML System
« Reply #3 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?
Laurent Gomila - SFML developer

FierceForm

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • Email
Make SFML Window not depend on SFML System
« Reply #4 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.
-FierceForm

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Make SFML Window not depend on SFML System
« Reply #5 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.
Laurent Gomila - SFML developer