Hi Aurelien,
Is there any errors displayed on the console?
I viewed your code and only found that
the BEGIN_ENUM_SERIALIZER2(RedSwizzleSource, ...) segments don't have any
version verify. You may have to rewrite all the four segments like:
{
UPDATE_TO_VERSION_SCOPED( 97 )
BEGIN_ENUM_SERIALIZER2(RedSwizzleSource, ...)
...
}
Otherwise, the backward compatibility is broken and osgb files generated
with old wrapper version will not be recognized again.
Wang Rui
2013/2/15 Aurelien Albert <[email protected]>
> 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
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org