Added TextureBuffer serializer

This commit is contained in:
Robert Osfield
2017-03-22 14:20:03 +00:00
parent 602a6beda8
commit e74f8f4bbe

View File

@@ -0,0 +1,13 @@
#include <osg/TextureBuffer>
#include <osgDB/ObjectWrapper>
#include <osgDB/InputStream>
#include <osgDB/OutputStream>
REGISTER_OBJECT_WRAPPER( TextureBuffer,
new osg::TextureBuffer,
osg::TextureBuffer,
"osg::Object osg::StateAttribute osg::Texture osg::TextureBuffer" )
{
ADD_INT_SERIALIZER( TextureWidth, 0 ); // _textureWidth
ADD_OBJECT_SERIALIZER( BufferData, osg::BufferData, NULL ); // _bufferData
}