Hi Colin, On 3 February 2012 16:47, Colin McDonald <[email protected]> wrote: > I'd seen that the ive format did an endian test to determine which format > the file was written out in. But there is no endian flag field in the current > osgb file format. We could use the OSG_HEADER_LOW/HIGH fields, > testing for swapped versions, but I didn't like that as it means there are two > "magic number" variants at the start of the file.
I don't have a problem with there being two magic number variants if there are two endian variants. Of all the places we could put the type of endian the file recorded as this would be the place I think as it's already there. We'd need to assume that existing files are little endian which is probably the best assumption for most users. Being able to override the endian might be appropriate for older files. Robert. _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
