Added support for TexMat to .ive plugin

This commit is contained in:
Robert Osfield
2003-11-25 14:38:16 +00:00
parent 31c5528ffb
commit 280eaf56fd
7 changed files with 100 additions and 6 deletions

View File

@@ -25,6 +25,7 @@
#include "TexEnv.h"
#include "TexEnvCombine.h"
#include "TexGen.h"
#include "TexMat.h"
#include "Group.h"
#include "MatrixTransform.h"
@@ -570,6 +571,10 @@ osg::StateAttribute* DataInputStream::readStateAttribute()
attribute = new osg::TexGen();
((ive::TexGen*)(attribute))->read(this);
}
else if(attributeID == IVETEXMAT){
attribute = new osg::TexMat();
((ive::TexMat*)(attribute))->read(this);
}
else{
throw Exception("Unkown StateAttribute in StateSet::read()");
}