[eq-dev] Collage byte swapping and endian-safety

5 views
Skip to first unread message

Stefan Eilemann

unread,
Aug 10, 2012, 9:09:17 AM8/10/12
to Equalizer Developer List
Hi,

I've just checked in code needed for the new endian-safe Collage (https://github.com/Eyescale/Equalizer/issues/146). The DataIStream needs an implementation of lunchbox::byteswap for each user-defined type.

If you get unresolved symbols, you have two options:

- #define CO_IGNORE_ENDIANNESS if you don't care about this feature
- Implement the missing template specializations, e.g.:

namespace lunchbox
{
template<> inline void byteswap( eq::fabric::Projection& value )
{
byteswap( value.origin );
byteswap( value.distance );
byteswap( value.fov );
byteswap( value.hpr );
}
}

The full feature will take some time to implement, feel free to monitor the aforementioned issue.

As usual, don't be afraid to ask questions if you run into trouble.


Cheers,

Stefan.


_______________________________________________
eq-dev mailing list
eq-...@equalizergraphics.com
http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev
http://www.equalizergraphics.com
Reply all
Reply to author
Forward
0 new messages