Added TextureBuffer serializer
This commit is contained in:
13
src/osgWrappers/serializers/osg/TextureBuffer.cpp
Normal file
13
src/osgWrappers/serializers/osg/TextureBuffer.cpp
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user