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

Revision 13041, 0.8 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 <osg/AlphaFunc>
2#include <osgDB/ObjectWrapper>
3#include <osgDB/InputStream>
4#include <osgDB/OutputStream>
5
6REGISTER_OBJECT_WRAPPER( AlphaFunc,
7                         new osg::AlphaFunc,
8                         osg::AlphaFunc,
9                         "osg::Object osg::StateAttribute osg::AlphaFunc" )
10{
11    BEGIN_ENUM_SERIALIZER2( Function, osg::AlphaFunc::ComparisonFunction, ALWAYS );
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();  // _comparisonFunc
21
22    ADD_FLOAT_SERIALIZER( ReferenceValue, 1.0f );  // _referenceValue
23}
Note: See TracBrowser for help on using the browser.