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

Author Topic: SFML boost::Serialization  (Read 1797 times)

0 Members and 2 Guests are viewing this topic.

GRIFFnDOOR

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
SFML boost::Serialization
« on: August 01, 2011, 06:48:54 am »
Hey, I was wondering if anyone has already set up all the SFML classes to work with boost::serialization.

If so PLEASE share the source code! I don't wanna reinvent the wheel. :D
"you must unzip your genes to reproduce"
- my science teacher =)

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
SFML boost::Serialization
« Reply #1 on: August 01, 2011, 10:59:00 am »
*all* ? That's a lot! Do you really need that ? Be lazy and do only what you need.  :wink:
SFML / OS X developer

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
SFML boost::Serialization
« Reply #2 on: August 01, 2011, 01:02:11 pm »
I don't think either that it is meaningful to serialize arbitrary SFML classes. Especially not those who only represent graphical states, like sf::Sprite. I would focus on classes with general, logical semantics, most notably
  • sf::Vector2<T>
  • sf::Vector3<T>
  • sf::Rect<T>
  • sf::String
  • sf::IpAddress
By the way, you should do that for SFML 2, as it is the future 8)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

 

anything