I am reading Game Coding Complete
and it suggests to have two init()
functions, one being your usual init() call, the other taking a stream. It doesn't go into alot of detail about it though, and I am left a little confused.
class AnimatinPath
{
public:
AnimationPath();
Initialize(std::vector<AnimationPathPoints> const & srcPath);
Initialize(InputStream & stream);
// ...
};
It goes on to say you can init objects from disk, memory or over a network.
What is a stream? I've been using C++ for about 2 years and my only experience with stream
is iostream. Is this suggesting I have a binary output of an object that I can use?
What would the syntax look at the other end, when creating the object.
Thanks.