From Farshid Laskari, addiition of FrontFace support to .ive

This commit is contained in:
Robert Osfield
2005-03-26 10:04:31 +00:00
parent 0123cdbe8f
commit e4580f2028
7 changed files with 96 additions and 4 deletions

View File

@@ -38,6 +38,7 @@
#include "VertexProgram.h"
#include "LightModel.h"
#include "ProxyNode.h"
#include "FrontFace.h"
#include "Group.h"
#include "MatrixTransform.h"
@@ -745,12 +746,14 @@ osg::StateAttribute* DataInputStream::readStateAttribute()
attribute = new osg::VertexProgram();
((ive::VertexProgram*)(attribute))->read(this);
}
else if(attributeID == IVELIGHTMODEL){
attribute = new osg::LightModel();
((ive::LightModel*)(attribute))->read(this);
}
else if(attributeID == IVEFRONTFACE){
attribute = new osg::FrontFace();
((ive::FrontFace*)(attribute))->read(this);
}
else{
throw Exception("Unknown StateAttribute in StateSet::read()");
}