From Ulrich Hertlein, added support for osg::BlendColor to .ive format.

This commit is contained in:
Robert Osfield
2007-02-13 12:17:33 +00:00
parent 5fddbfe85c
commit e4ffa968a2
7 changed files with 99 additions and 1 deletions

View File

@@ -9,7 +9,7 @@
*
* HISTORY: Created 11.03.2003
* Updated for 1D textures - Don Burns 27.1.2004
* Updated for light model - Stan Blinov at 25 august 7512 from World Creation (7.09.2004)
* Updated for light model - Stan Blinov at 25 august 7512 from World Creation (7.09.2004)
*
* Copyright 2003 VR-C
**********************************************************************/
@@ -19,6 +19,7 @@
#include "StateSet.h"
#include "AlphaFunc.h"
#include "BlendColor.h"
#include "BlendFunc.h"
#include "Material.h"
#include "CullFace.h"
@@ -654,6 +655,9 @@ void DataOutputStream::writeStateAttribute(const osg::StateAttribute* attribute)
if(dynamic_cast<const osg::AlphaFunc*>(attribute)){
((ive::AlphaFunc*)(attribute))->write(this);
}
else if(dynamic_cast<const osg::BlendColor*>(attribute)){
((ive::BlendColor*)(attribute))->write(this);
}
else if(dynamic_cast<const osg::BlendFunc*>(attribute)){
((ive::BlendFunc*)(attribute))->write(this);
}