This is really weird :
if the object file doesn't define the "swizzle" field, the osgt/osgx
serializers works, but not the osgb.
I think I use the right code (taken from AlphaFunc serializer) :
BEGIN_ENUM_SERIALIZER2( RedSwizzleSource, osg::Texture::SwizzleSource,
SRC_RED );
ADD_ENUM_VALUE( SRC_RED );
ADD_ENUM_VALUE( SRC_GREEN );
ADD_ENUM_VALUE( SRC_BLUE );
ADD_ENUM_VALUE( SRC_ALPHA );
ADD_ENUM_VALUE( SRC_ZERO );
ADD_ENUM_VALUE( SRC_ONE );
END_ENUM_SERIALIZER(); // _swizzle[0]
Any idea of what am I doing wrong ?
Thank you!
Cheers,
Aurelien
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=52699#52699
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org