1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Serialization Question

Discussion in 'C++' started by ChaseRLewis, Sep 6, 2010.

  1. ChaseRLewis

    ChaseRLewis New Member

    Sep 6, 2010
    Likes Received:
    Trophy Points:
    I'm working on creating some 3d tools for helping me in my game making hobby.

    Its going along fine, but I need to save a model class with a non-standard size (model with 4 textures and 10000 vertices is larger than one with 1 texture and 1000 vertices) to memory and read it back.

    My idea is to save it as a binary file than read a set of bytes in the beginning that give information such as number of textures, number of vertices, number of indices, and have each texture have a flag to tell what it is to be used for.

    The end product needs to run on windows and as I've learned solely from books that seemed to think file io wasn't a very important topic, I'm looking on opinions of whether c++ standard functions are the way to go or if there is a better way through windows file system.

Share This Page