In the end the proper solution (and what should have been done from the start) is not to use the in-memory representation, but to write proper serialization functions for these data types. I did this for the 3D vector now. I mean, writing a 3D vector to a file with its dummy padding word is just bat shit insane -- and now we are stuck supporting this insanity indefinitely for the sake of backwards compatibility.
I added the note to the Vertex3D_NoTex2 structure. Vertex2D is unlikely to have its memory layout changed, and I haven't looked at the protection data struct. Couldn't harm to note it, you're right.
By the way, I wondered a while now; you seem like a resourceful guy, aren't you interested in joining the VP dev team proper? ![]()




Top









Contributor









are all trademarks of VPFORUMS.