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

Revision 13041, 1.1 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/ShapeDrawable>
2#include <osgDB/ObjectWrapper>
3#include <osgDB/InputStream>
4#include <osgDB/OutputStream>
5
6REGISTER_OBJECT_WRAPPER( TessellationHints,
7                         new osg::TessellationHints,
8                         osg::TessellationHints,
9                         "osg::Object osg::TessellationHints" )
10{
11    BEGIN_ENUM_SERIALIZER( TessellationMode, USE_SHAPE_DEFAULTS );
12        ADD_ENUM_VALUE( USE_SHAPE_DEFAULTS );
13        ADD_ENUM_VALUE( USE_TARGET_NUM_FACES );
14    END_ENUM_SERIALIZER();  // _TessellationMode
15
16    ADD_FLOAT_SERIALIZER( DetailRatio, 1.0f );  // _detailRatio
17    ADD_UINT_SERIALIZER( TargetNumFaces, 100 );  // _targetNumFaces
18    ADD_BOOL_SERIALIZER( CreateFrontFace, true );  // _createFrontFace
19    ADD_BOOL_SERIALIZER( CreateBackFace, false );  // _createBackFace
20    ADD_BOOL_SERIALIZER( CreateNormals, true );  // _createNormals
21    ADD_BOOL_SERIALIZER( CreateTextureCoords, false );  // _createTextureCoords
22    ADD_BOOL_SERIALIZER( CreateTop, true );  // _createTop
23    ADD_BOOL_SERIALIZER( CreateBody, true );  // _createBody
24    ADD_BOOL_SERIALIZER( CreateBottom, true );  // _createBottom
25}
Note: See TracBrowser for help on using the browser.