Renamed osgViewer::Config osgViewer::ViewConfig and moved it's declaration into include/osgViewer.
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
#include <osgViewer/Config>
|
||||
#include <osgViewer/View>
|
||||
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( osgViewer_Config,
|
||||
new osgViewer::Config,
|
||||
osgViewer::Config,
|
||||
"osg::Object osgViewer::Config" )
|
||||
REGISTER_OBJECT_WRAPPER( osgViewer_ViewConfig,
|
||||
new osgViewer::ViewConfig,
|
||||
osgViewer::ViewConfig,
|
||||
"osg::Object osgViewer::ViewConfig" )
|
||||
{
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
REGISTER_OBJECT_WRAPPER( osgViewer_PanoramicSphericalDisplay,
|
||||
new osgViewer::PanoramicSphericalDisplay,
|
||||
osgViewer::PanoramicSphericalDisplay,
|
||||
"osg::Object osgViewer::Config osgViewer::PanoramicSphericalDisplay" )
|
||||
"osg::Object osgViewer::ViewConfig osgViewer::PanoramicSphericalDisplay" )
|
||||
{
|
||||
ADD_DOUBLE_SERIALIZER(Radius, 1.0);
|
||||
ADD_DOUBLE_SERIALIZER(Collar, 0.45);
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
REGISTER_OBJECT_WRAPPER( osgViewer_SingleScreen,
|
||||
new osgViewer::SingleScreen,
|
||||
osgViewer::SingleScreen,
|
||||
"osg::Object osgViewer::Config osgViewer::SingleScreen" )
|
||||
"osg::Object osgViewer::ViewConfig osgViewer::SingleScreen" )
|
||||
{
|
||||
ADD_UINT_SERIALIZER( ScreenNum, 0u);
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
REGISTER_OBJECT_WRAPPER( osgViewer_SingleWindow,
|
||||
new osgViewer::SingleWindow,
|
||||
osgViewer::SingleWindow,
|
||||
"osg::Object osgViewer::Config osgViewer::SingleWindow" )
|
||||
"osg::Object osgViewer::ViewConfig osgViewer::SingleWindow" )
|
||||
{
|
||||
ADD_INT_SERIALIZER( X, 0);
|
||||
ADD_INT_SERIALIZER( Y, 0);
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
REGISTER_OBJECT_WRAPPER( osgViewer_SphericalDisplay,
|
||||
new osgViewer::SphericalDisplay,
|
||||
osgViewer::SphericalDisplay,
|
||||
"osg::Object osgViewer::Config osgViewer::SphericalDisplay" )
|
||||
"osg::Object osgViewer::ViewConfig osgViewer::SphericalDisplay" )
|
||||
{
|
||||
ADD_DOUBLE_SERIALIZER(Radius, 1.0);
|
||||
ADD_DOUBLE_SERIALIZER(Collar, 0.45);
|
||||
|
||||
@@ -7,16 +7,17 @@
|
||||
REGISTER_OBJECT_WRAPPER( osgViewer_WoWVxDisplay,
|
||||
new osgViewer::WoWVxDisplay,
|
||||
osgViewer::WoWVxDisplay,
|
||||
"osg::Object osgViewer::Config osgViewer::WoWVxDisplay" )
|
||||
"osg::Object osgViewer::ViewConfig osgViewer::WoWVxDisplay" )
|
||||
{
|
||||
ADD_UINT_SERIALIZER(ScreenNum, 0u);
|
||||
|
||||
ADD_UCHAR_SERIALIZER(Content, 0);
|
||||
ADD_UCHAR_SERIALIZER(Factor, 0);
|
||||
ADD_UCHAR_SERIALIZER(Offset, 0);
|
||||
|
||||
ADD_FLOAT_SERIALIZER(DisparityZD, 0);
|
||||
ADD_FLOAT_SERIALIZER(DisparityVZ, 0);
|
||||
ADD_FLOAT_SERIALIZER(DisparityM, 0);
|
||||
ADD_FLOAT_SERIALIZER(DisparityC, 0);
|
||||
#if 0
|
||||
ADD_UCHAR_SERIALIZER(Content, 0x02);
|
||||
ADD_UCHAR_SERIALIZER(Factor, 0x40);
|
||||
ADD_UCHAR_SERIALIZER(Offset, 0x80);
|
||||
#endif
|
||||
|
||||
ADD_FLOAT_SERIALIZER(DisparityZD, 0.459813f);
|
||||
ADD_FLOAT_SERIALIZER(DisparityVZ, 6.180772f);
|
||||
ADD_FLOAT_SERIALIZER(DisparityM, -1586.34f);
|
||||
ADD_FLOAT_SERIALIZER(DisparityC, 127.5f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user