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

@@ -18,6 +18,7 @@
#include "DataInputStream.h"
#include "StateSet.h"
#include "AlphaFunc.h"
#include "BlendColor.h"
#include "BlendFunc.h"
#include "Depth.h"
#include "Material.h"
@@ -967,6 +968,10 @@ osg::StateAttribute* DataInputStream::readStateAttribute()
attribute = new osg::AlphaFunc();
((ive::AlphaFunc*)(attribute))->read(this);
}
else if(attributeID == IVEBLENDCOLOR){
attribute = new osg::BlendColor();
((ive::BlendColor*)(attribute))->read(this);
}
else if(attributeID == IVEBLENDFUNC ||
attributeID == IVEBLENDFUNCSEPARATE){
attribute = new osg::BlendFunc();