|
Revision 13041, 0.8 kB
(checked in by robert, 14 months ago)
|
|
Ran script to remove trailing spaces and tabs
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | #include <osg/CameraView> |
|---|
| 2 | #include <osgDB/ObjectWrapper> |
|---|
| 3 | #include <osgDB/InputStream> |
|---|
| 4 | #include <osgDB/OutputStream> |
|---|
| 5 | |
|---|
| 6 | REGISTER_OBJECT_WRAPPER( CameraView, |
|---|
| 7 | new osg::CameraView, |
|---|
| 8 | osg::CameraView, |
|---|
| 9 | "osg::Object osg::Node osg::Group osg::Transform osg::CameraView" ) |
|---|
| 10 | { |
|---|
| 11 | ADD_VEC3D_SERIALIZER( Position, osg::Vec3d() ); |
|---|
| 12 | ADD_QUAT_SERIALIZER( Attitude, osg::Quat() ); |
|---|
| 13 | ADD_DOUBLE_SERIALIZER( FieldOfView, 60.0 ); |
|---|
| 14 | |
|---|
| 15 | BEGIN_ENUM_SERIALIZER( FieldOfViewMode, VERTICAL ); |
|---|
| 16 | ADD_ENUM_VALUE( UNCONSTRAINED ); |
|---|
| 17 | ADD_ENUM_VALUE( HORIZONTAL ); |
|---|
| 18 | ADD_ENUM_VALUE( VERTICAL ); |
|---|
| 19 | END_ENUM_SERIALIZER(); |
|---|
| 20 | |
|---|
| 21 | ADD_DOUBLE_SERIALIZER( FocalLength, 0.0 ); |
|---|
| 22 | } |
|---|