From 729680714c538c79a9dd034bb8e138a44d3b21b2 Mon Sep 17 00:00:00 2001 From: OpenSceneGraph git repository Date: Sat, 11 Nov 2017 13:08:42 +0000 Subject: [PATCH] Readbility improvements and updating version to 152 --- .../serializers/osgAnimation/RigTransform.cpp | 64 +++++++++++-------- 1 file changed, 38 insertions(+), 26 deletions(-) diff --git a/src/osgWrappers/serializers/osgAnimation/RigTransform.cpp b/src/osgWrappers/serializers/osgAnimation/RigTransform.cpp index 5b69cdcd1..4eb5f3341 100644 --- a/src/osgWrappers/serializers/osgAnimation/RigTransform.cpp +++ b/src/osgWrappers/serializers/osgAnimation/RigTransform.cpp @@ -7,52 +7,64 @@ #include #include -namespace wrap_osgAnimationRigTransform{ - REGISTER_OBJECT_WRAPPER( osgAnimation_RigTransform, +namespace wrap_osgAnimationRigTransform +{ + REGISTER_OBJECT_WRAPPER( osgAnimation_RigTransform, NULL, osgAnimation::RigTransform, "osg::Object osgAnimation::RigTransform" ){} } -namespace wrap_osgAnimationRigTransformSoftWare{ - REGISTER_OBJECT_WRAPPER( osgAnimation_RigTransformSoftware, + +namespace wrap_osgAnimationRigTransformSoftWare +{ + REGISTER_OBJECT_WRAPPER( osgAnimation_RigTransformSoftware, new osgAnimation::RigTransformSoftware, osgAnimation::RigTransformSoftware, "osg::Object osgAnimation::RigTransform osgAnimation::RigTransformSoftware" ){} } -namespace wrap_osgAnimationRigTransformHardWare{ - REGISTER_OBJECT_WRAPPER( osgAnimation_RigTransformHardware, + +namespace wrap_osgAnimationRigTransformHardWare +{ + REGISTER_OBJECT_WRAPPER( osgAnimation_RigTransformHardware, new osgAnimation::RigTransformHardware, osgAnimation::RigTransformHardware, - "osg::Object osgAnimation::RigTransform osgAnimation::RigTransformHardware" ){ - { - UPDATE_TO_VERSION_SCOPED(150) - ADD_OBJECT_SERIALIZER(Shader, osg::Shader, NULL); - ADD_UINT_SERIALIZER(FirstVertexAttributeTarget, RIGTRANSHW_DEFAULT_FIRST_VERTATTRIB_TARGETTED); - } - } + "osg::Object osgAnimation::RigTransform osgAnimation::RigTransformHardware" ) + { + { + UPDATE_TO_VERSION_SCOPED(152) + ADD_OBJECT_SERIALIZER(Shader, osg::Shader, NULL); + ADD_UINT_SERIALIZER(FirstVertexAttributeTarget, RIGTRANSHW_DEFAULT_FIRST_VERTATTRIB_TARGETTED); + } + } } -namespace wrap_osgAnimationMorphTransform{ - REGISTER_OBJECT_WRAPPER( osgAnimation_MorphTransform, +namespace wrap_osgAnimationMorphTransform +{ + REGISTER_OBJECT_WRAPPER( osgAnimation_MorphTransform, NULL, osgAnimation::MorphTransform, "osg::Object osgAnimation::MorphTransform" ){} } -namespace wrap_osgAnimationMorphTransformSoftWare{ - REGISTER_OBJECT_WRAPPER( osgAnimation_MorphTransformSoftware, + +namespace wrap_osgAnimationMorphTransformSoftWare +{ + REGISTER_OBJECT_WRAPPER( osgAnimation_MorphTransformSoftware, new osgAnimation::MorphTransformSoftware, osgAnimation::MorphTransformSoftware, "osg::Object osgAnimation::MorphTransform osgAnimation::MorphTransformSoftware" ){} } -namespace wrap_osgAnimationMorphTransformHardware{ - REGISTER_OBJECT_WRAPPER( osgAnimation_MorphTransformHardware, + +namespace wrap_osgAnimationMorphTransformHardware +{ + REGISTER_OBJECT_WRAPPER( osgAnimation_MorphTransformHardware, new osgAnimation::MorphTransformHardware, osgAnimation::MorphTransformHardware, - "osg::Object osgAnimation::MorphTransform osgAnimation::MorphTransformHardware" ){ - { - UPDATE_TO_VERSION_SCOPED(150) - ADD_OBJECT_SERIALIZER(Shader, osg::Shader, NULL); - ADD_UINT_SERIALIZER(ReservedTextureUnit, MORPHTRANSHW_DEFAULTMORPHTEXTUREUNIT); - } - } + "osg::Object osgAnimation::MorphTransform osgAnimation::MorphTransformHardware" + { + { + UPDATE_TO_VERSION_SCOPED(152) + ADD_OBJECT_SERIALIZER(Shader, osg::Shader, NULL); + ADD_UINT_SERIALIZER(ReservedTextureUnit, MORPHTRANSHW_DEFAULTMORPHTEXTUREUNIT); + } + } }