root/OpenSceneGraph/trunk/src/osgWrappers/serializers/osg/BlendFunc.cpp @ 10976

Revision 10976, 0.6 kB (checked in by robert, 5 years ago)

From Wang Rui, new native binary/ascii format infrastructure and wrappers.

From Robert Osfield, refactor of Wang Rui's original osg2 into 3 parts - parts placed into osgDB, the ReaderWriter? placed into src/osg/Plugin/osg and wrappers into src/osgWrappers/serializers/osg

  • Property svn:executable set to *
Line 
1#include <osg/BlendFunc>
2#include <osgDB/ObjectWrapper>
3#include <osgDB/InputStream>
4#include <osgDB/OutputStream>
5
6REGISTER_OBJECT_WRAPPER( BlendFunc,
7                         new osg::BlendFunc,
8                         osg::BlendFunc,
9                         "osg::Object osg::StateAttribute osg::BlendFunc" )
10{
11    ADD_GLENUM_SERIALIZER( SourceRGB, GLenum, GL_ONE );  // _source_factor
12    ADD_GLENUM_SERIALIZER( SourceAlpha, GLenum, GL_ONE );  // _source_factor_alpha
13    ADD_GLENUM_SERIALIZER( DestinationRGB, GLenum, GL_ONE );  // _destination_factor
14    ADD_GLENUM_SERIALIZER( DestinationAlpha, GLenum, GL_ONE );  // _destination_factor_alpha
15}
Note: See TracBrowser for help on using the browser.