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

@@ -27,6 +27,7 @@
#include "TexEnv.h"
#include "TexEnvCombine.h"
#include "TexGen.h"
#include "TexMat.h"
#include "Group.h"
#include "MatrixTransform.h"
@@ -440,6 +441,10 @@ void DataOutputStream::writeStateAttribute(const osg::StateAttribute* attribute)
else if(dynamic_cast<const osg::TexGen*>(attribute)){
((ive::TexGen*)(attribute))->write(this);
}
// This is a TexMat
else if(dynamic_cast<const osg::TexMat*>(attribute)){
((ive::TexMat*)(attribute))->write(this);
}
else{
std::string className = attribute->className();
throw Exception(std::string("StateSet::write(): Unknown StateAttribute: ").append(className));