From Wang Rui, "The new osgShadow and osgFX serializers are attached, and some
modifications of the osgShadow header naming styles as well. The osgDB::Serializer header is also changed to add new Vec2 serializer macros because of the needs of osgShadow classes. It should compile fine on both Windows and Linux. But I have only done a few tests to generate .osgb, .osgt and .osgx formats with these new wrappers."
This commit is contained in:
14
src/osgWrappers/serializers/osgShadow/ShadowedScene.cpp
Normal file
14
src/osgWrappers/serializers/osgShadow/ShadowedScene.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <osgShadow/ShadowedScene>
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( osgShadow_ShadowedScene,
|
||||
new osgShadow::ShadowedScene,
|
||||
osgShadow::ShadowedScene,
|
||||
"osg::Object osg::Node osg::Group osgShadow::ShadowedScene" )
|
||||
{
|
||||
ADD_HEXINT_SERIALIZER( ReceivesShadowTraversalMask, 0xffffffff ); // _receivesShadowTraversalMask
|
||||
ADD_HEXINT_SERIALIZER( CastsShadowTraversalMask, 0xffffffff ); // _castsShadowTraversalMask
|
||||
ADD_OBJECT_SERIALIZER( ShadowTechnique, osgShadow::ShadowTechnique, NULL ); // _shadowTechnique
|
||||
}
|
||||
Reference in New Issue
Block a user