root/OpenSceneGraph/trunk/src/osgWrappers/serializers/osg/Depth.cpp @ 13041

Revision 13041, 0.8 kB (checked in by robert, 3 years ago)

Ran script to remove trailing spaces and tabs

  • Property svn:eol-style set to native
Line 
1#include <osg/Depth>
2#include <osgDB/ObjectWrapper>
3#include <osgDB/InputStream>
4#include <osgDB/OutputStream>
5
6REGISTER_OBJECT_WRAPPER( Depth,
7                         new osg::Depth,
8                         osg::Depth,
9                         "osg::Object osg::StateAttribute osg::Depth" )
10{
11    BEGIN_ENUM_SERIALIZER( Function, LESS );
12        ADD_ENUM_VALUE( NEVER );
13        ADD_ENUM_VALUE( LESS );
14        ADD_ENUM_VALUE( EQUAL );
15        ADD_ENUM_VALUE( LEQUAL );
16        ADD_ENUM_VALUE( GREATER );
17        ADD_ENUM_VALUE( NOTEQUAL );
18        ADD_ENUM_VALUE( GEQUAL );
19        ADD_ENUM_VALUE( ALWAYS );
20    END_ENUM_SERIALIZER();  // _func
21
22    ADD_DOUBLE_SERIALIZER( ZNear, 0.0 );  // _zNear
23    ADD_DOUBLE_SERIALIZER( ZFar, 1.0 );  // _zFar
24    ADD_BOOL_SERIALIZER( WriteMask, true );  // _depthWriteMask
25}
Note: See TracBrowser for help on using the browser.