root/OpenSceneGraph/trunk/src/osgWrappers/serializers/osgShadow/ShadowMap.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 <osgShadow/ShadowMap>
2#include <osgDB/ObjectWrapper>
3#include <osgDB/InputStream>
4#include <osgDB/OutputStream>
5
6REGISTER_OBJECT_WRAPPER( osgShadow_ShadowMap,
7                         new osgShadow::ShadowMap,
8                         osgShadow::ShadowMap,
9                         "osg::Object osgShadow::ShadowTechnique osgShadow::ShadowMap" )
10{
11    ADD_UINT_SERIALIZER( TextureUnit, 1 );  // _shadowTextureUnit
12    ADD_VEC2_SERIALIZER( PolygonOffset, osg::Vec2f() );  // _polyOffset
13    ADD_VEC2_SERIALIZER( AmbientBias, osg::Vec2d() );  // _ambientBias
14
15    ADD_SERIALIZER( (new osgDB::PropByRefSerializer<osgShadow::ShadowMap, osg::Vec2s>
16                    ("TextureSize", osg::Vec2s(1024, 1024),
17                     &osgShadow::ShadowMap::getTextureSize,
18                     &osgShadow::ShadowMap::setTextureSize))
19    );  // _textureSize
20}
Note: See TracBrowser for help on using the browser.