From Pavel Moloshton, addition of AlphaFunc support to .ive.

This commit is contained in:
Robert Osfield
2003-12-01 14:31:56 +00:00
parent 3c9d1e0603
commit bd4a1cd601
8 changed files with 100 additions and 47 deletions

View File

@@ -14,6 +14,7 @@
#include "DataInputStream.h"
#include "StateSet.h"
#include "AlphaFunc.h"
#include "BlendFunc.h"
#include "Material.h"
#include "CullFace.h"
@@ -530,7 +531,11 @@ osg::StateAttribute* DataInputStream::readStateAttribute()
osg::StateAttribute* attribute;
int attributeID = peekInt();
if(attributeID == IVEBLENDFUNC){
if(attributeID == IVEALPHAFUNC){
attribute = new osg::AlphaFunc();
((ive::AlphaFunc*)(attribute))->read(this);
}
else if(attributeID == IVEBLENDFUNC){
attribute = new osg::BlendFunc();
((ive::BlendFunc*)(attribute))->read(this);
}