Files
OpenSceneGraph/src/osgWrappers/serializers/osgFX/SpecularHighlights.cpp
Robert Osfield a8c4fd8761 From Wang Rui, "The new osgShadow and osgFX serializers are attached, and some
modifications of the osgShadow header naming styles as well. The
osgDB::Serializer header is also changed to add new Vec2 serializer
macros because of the needs of osgShadow classes. It should compile
fine on both Windows and Linux. But I have only done a few tests to
generate .osgb, .osgt and .osgx formats with these new wrappers."
2010-04-20 10:29:04 +00:00

16 lines
628 B
C++

#include <osgFX/SpecularHighlights>
#include <osgDB/ObjectWrapper>
#include <osgDB/InputStream>
#include <osgDB/OutputStream>
REGISTER_OBJECT_WRAPPER( osgFX_SpecularHighlights,
new osgFX::SpecularHighlights,
osgFX::SpecularHighlights,
"osg::Object osg::Node osg::Group osgFX::Effect osgFX::SpecularHighlights" )
{
ADD_INT_SERIALIZER( LightNumber, 0 ); // _lightnum
ADD_INT_SERIALIZER( TextureUnit, 0 ); // _unit
ADD_VEC4_SERIALIZER( SpecularColor, osg::Vec4() ); // _color
ADD_FLOAT_SERIALIZER( SpecularExponent, 0.0f ); // _sexp
}