root/OpenSceneGraph/trunk/src/osgWrappers/serializers/osgSim/OverlayNode.cpp @ 13041

Revision 13041, 1.2 kB (checked in by robert, 2 years ago)

Ran script to remove trailing spaces and tabs

  • Property svn:eol-style set to native
Line 
1#include <osgSim/OverlayNode>
2#include <osg/TexEnv>
3#include <osgDB/ObjectWrapper>
4#include <osgDB/InputStream>
5#include <osgDB/OutputStream>
6
7REGISTER_OBJECT_WRAPPER( osgSim_OverlayNode,
8                         new osgSim::OverlayNode,
9                         osgSim::OverlayNode,
10                         "osg::Object osg::Node osg::Group osgSim::OverlayNode" )
11{
12    BEGIN_ENUM_SERIALIZER( OverlayTechnique, OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY );
13        ADD_ENUM_VALUE( OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY );
14        ADD_ENUM_VALUE( VIEW_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY );
15        ADD_ENUM_VALUE( VIEW_DEPENDENT_WITH_PERSPECTIVE_OVERLAY );
16    END_ENUM_SERIALIZER();  // _overlayTechnique
17
18    ADD_OBJECT_SERIALIZER( OverlaySubgraph, osg::Node, NULL );  // _overlaySubgraph
19    ADD_GLENUM_SERIALIZER( TexEnvMode, GLenum, GL_DECAL );  // _texEnvMode
20    ADD_UINT_SERIALIZER( OverlayTextureUnit, 1 );  // _textureUnit
21    ADD_UINT_SERIALIZER( OverlayTextureSizeHint, 1024 );  // _textureSizeHint
22    ADD_VEC4_SERIALIZER( OverlayClearColor, osg::Vec4() );  // _overlayClearColor
23    ADD_BOOL_SERIALIZER( ContinuousUpdate, false );  // _continuousUpdate
24    ADD_DOUBLE_SERIALIZER( OverlayBaseHeight, -100.0 );  // _overlayBaseHeight
25}
Note: See TracBrowser for help on using the browser.