add BufferData associate to Image and subclasses

This commit is contained in:
Julien Valentin
2018-01-04 05:16:21 +01:00
parent 196256fdcd
commit e33a407aaf
3 changed files with 16 additions and 3 deletions

View File

@@ -6,8 +6,13 @@
REGISTER_OBJECT_WRAPPER( Image,
new osg::Image,
osg::Image,
"osg::Object osg::Image" )
"osg::Object osg::BufferData osg::Image" )
{
{
UPDATE_TO_VERSION_SCOPED( 154 )
ADDED_ASSOCIATE("osg::BufferData")
}
{
UPDATE_TO_VERSION_SCOPED( 112 )

View File

@@ -72,8 +72,12 @@ static bool writeImages( osgDB::OutputStream& os, const osg::ImageSequence& imag
REGISTER_OBJECT_WRAPPER( ImageSequence,
new osg::ImageSequence,
osg::ImageSequence,
"osg::Object osg::Image osg::ImageStream osg::ImageSequence" )
"osg::Object osg::BufferData osg::Image osg::ImageStream osg::ImageSequence" )
{
{
UPDATE_TO_VERSION_SCOPED( 154 )
ADDED_ASSOCIATE("osg::BufferData")
}
ADD_DOUBLE_SERIALIZER( ReferenceTime, DBL_MAX ); // _referenceTime
ADD_DOUBLE_SERIALIZER( TimeMultiplier, 1.0 ); // _timeMultiplier

View File

@@ -6,8 +6,12 @@
REGISTER_OBJECT_WRAPPER( ImageStream,
new osg::ImageStream,
osg::ImageStream,
"osg::Object osg::Image osg::ImageStream" )
"osg::Object osg::BufferData osg::Image osg::ImageStream" )
{
{
UPDATE_TO_VERSION_SCOPED( 154 )
ADDED_ASSOCIATE("osg::BufferData")
}
BEGIN_ENUM_SERIALIZER( LoopingMode, NO_LOOPING );
ADD_ENUM_VALUE( NO_LOOPING );
ADD_ENUM_VALUE( LOOPING );