From Konstantin Matveyev, "Two classes (with wrappers) added to osgAnimation: UpdateVec2fUniform and UpdateVec4fUniform"

This commit is contained in:
Robert Osfield
2016-03-01 15:09:12 +00:00
parent 33b838e437
commit bb79e523d4
4 changed files with 60 additions and 0 deletions

View File

@@ -30,7 +30,9 @@ USE_SERIALIZER_WRAPPER(osgAnimation_UpdateMorphGeometry)
USE_SERIALIZER_WRAPPER(osgAnimation_UpdateRigGeometry)
USE_SERIALIZER_WRAPPER(osgAnimation_UpdateFloatUniform)
USE_SERIALIZER_WRAPPER(osgAnimation_UpdateMatrixfUniform)
USE_SERIALIZER_WRAPPER(osgAnimation_UpdateVec2fUniform)
USE_SERIALIZER_WRAPPER(osgAnimation_UpdateVec3fUniform)
USE_SERIALIZER_WRAPPER(osgAnimation_UpdateVec4fUniform)
extern "C" void wrapper_serializer_library_osgAnimation(void) {}

View File

@@ -0,0 +1,17 @@
#undef OBJECT_CAST
#define OBJECT_CAST dynamic_cast
#include <osgAnimation/UpdateUniform>
#include <osgDB/ObjectWrapper>
#include <osgDB/InputStream>
#include <osgDB/OutputStream>
REGISTER_OBJECT_WRAPPER( osgAnimation_UpdateVec2fUniform,
new osgAnimation::UpdateVec2fUniform,
osgAnimation::UpdateVec2fUniform,
"osg::Object osg::Callback osg::UniformCallback osgAnimation::UpdateVec2fUniform" )
{
}
#undef OBJECT_CAST
#define OBJECT_CAST static_cast

View File

@@ -0,0 +1,17 @@
#undef OBJECT_CAST
#define OBJECT_CAST dynamic_cast
#include <osgAnimation/UpdateUniform>
#include <osgDB/ObjectWrapper>
#include <osgDB/InputStream>
#include <osgDB/OutputStream>
REGISTER_OBJECT_WRAPPER( osgAnimation_UpdateVec4fUniform,
new osgAnimation::UpdateVec4fUniform,
osgAnimation::UpdateVec4fUniform,
"osg::Object osg::Callback osg::UniformCallback osgAnimation::UpdateVec4fUniform" )
{
}
#undef OBJECT_CAST
#define OBJECT_CAST static_cast