Merge pull request #291 from eligovision/OpenSceneGraph-3.4_animation
osgAnimation: classes UpdateVec2fUniform and UpdateVec4fUniform added
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
#include <osgDB/FileUtils>
|
||||
#include <osgDB/WriteFile>
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <fstream>
|
||||
#include <osgDB/fstream>
|
||||
#include <sstream>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -559,7 +559,7 @@ void OutputStream::writeImage( const osg::Image* img )
|
||||
if ( isBinary() )
|
||||
{
|
||||
std::string fullPath = osgDB::findDataFile( img->getFileName() );
|
||||
std::ifstream infile( fullPath.c_str(), std::ios::in|std::ios::binary );
|
||||
osgDB::ifstream infile( fullPath.c_str(), std::ios::in|std::ios::binary );
|
||||
if ( infile )
|
||||
{
|
||||
infile.seekg( 0, std::ios::end );
|
||||
|
||||
@@ -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) {}
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user