Added support for ColorMask to .ive plugin

This commit is contained in:
Robert Osfield
2007-02-13 14:42:00 +00:00
parent 927dfc0a52
commit 9c434274be
7 changed files with 94 additions and 0 deletions

View File

@@ -24,6 +24,7 @@
#include "Depth.h"
#include "Material.h"
#include "CullFace.h"
#include "ColorMask.h"
#include "ClipPlane.h"
#include "PolygonOffset.h"
#include "PolygonMode.h"
@@ -998,6 +999,10 @@ osg::StateAttribute* DataInputStream::readStateAttribute()
attribute = new osg::CullFace();
((ive::CullFace*)(attribute))->read(this);
}
else if(attributeID == IVECOLORMASK){
attribute = new osg::ColorMask();
((ive::ColorMask*)(attribute))->read(this);
}
else if(attributeID == IVECLIPPLANE){
attribute = new osg::ClipPlane();
((ive::ClipPlane*)(attribute))->read(this);