From Wang Rui, new native binary/ascii format infrastructure and wrappers.
From Robert Osfield, refactor of Wang Rui's original osg2 into 3 parts - parts placed into osgDB, the ReaderWriter placed into src/osg/Plugin/osg and wrappers into src/osgWrappers/serializers/osg
This commit is contained in:
19
src/osgWrappers/serializers/osg/Multisample.cpp
Executable file
19
src/osgWrappers/serializers/osg/Multisample.cpp
Executable file
@@ -0,0 +1,19 @@
|
||||
#include <osg/Multisample>
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( Multisample,
|
||||
new osg::Multisample,
|
||||
osg::Multisample,
|
||||
"osg::Object osg::StateAttribute osg::Multisample" )
|
||||
{
|
||||
ADD_FLOAT_SERIALIZER( Coverage, 0.0f ); // _coverage
|
||||
ADD_BOOL_SERIALIZER( Invert, false ); // _invert
|
||||
|
||||
BEGIN_ENUM_SERIALIZER2( Hint, osg::Multisample::Mode, DONT_CARE );
|
||||
ADD_ENUM_VALUE( FASTEST );
|
||||
ADD_ENUM_VALUE( NICEST );
|
||||
ADD_ENUM_VALUE( DONT_CARE );
|
||||
END_ENUM_SERIALIZER(); // _mode
|
||||
}
|
||||
Reference in New Issue
Block a user