root/OpenSceneGraph/trunk/src/osgWrappers/serializers/osgShadow/StandardShadowMap.cpp @ 13041

Revision 13041, 1.2 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 <osgShadow/StandardShadowMap>
2#include <osgDB/ObjectWrapper>
3#include <osgDB/InputStream>
4#include <osgDB/OutputStream>
5
6REGISTER_OBJECT_WRAPPER( osgShadow_StandardShadowMap,
7                         new osgShadow::StandardShadowMap,
8                         osgShadow::StandardShadowMap,
9                         "osg::Object osgShadow::ShadowTechnique osgShadow::ViewDependentShadowTechnique "
10                         "osgShadow::DebugShadowMap osgShadow::StandardShadowMap" )
11{
12    ADD_UINT_SERIALIZER( BaseTextureUnit, 0 );  // _baseTextureUnit
13    ADD_UINT_SERIALIZER( ShadowTextureUnit, 1 );  // _shadowTextureUnit
14    ADD_UINT_SERIALIZER( BaseTextureCoordIndex, 0 );  // _baseTextureCoordIndex
15    ADD_UINT_SERIALIZER( ShadowTextureCoordIndex, 1 );  // _shadowTextureCoordIndex
16
17    ADD_SERIALIZER( (new osgDB::PropByRefSerializer<osgShadow::StandardShadowMap, osg::Vec2s>
18                    ("TextureSize", osg::Vec2s(1024, 1024),
19                     &osgShadow::StandardShadowMap::getTextureSize,
20                     &osgShadow::StandardShadowMap::setTextureSize))
21    );  // _textureSize
22
23    ADD_OBJECT_SERIALIZER( Light, osg::Light, NULL );  // _light
24}
Note: See TracBrowser for help on using the browser.