From Ali Botorabi, adding of osg::Depth support in .ive format.

This commit is contained in:
Robert Osfield
2005-12-19 14:48:04 +00:00
parent 7b31c2e6ac
commit 523f608ba6
7 changed files with 151 additions and 58 deletions

View File

@@ -19,6 +19,7 @@
#include "StateSet.h"
#include "AlphaFunc.h"
#include "BlendFunc.h"
#include "Depth.h"
#include "Material.h"
#include "CullFace.h"
#include "ClipPlane.h"
@@ -818,6 +819,10 @@ osg::StateAttribute* DataInputStream::readStateAttribute()
attribute = new osg::BlendFunc();
((ive::BlendFunc*)(attribute))->read(this);
}
else if(attributeID == IVEDEPTH){
attribute = new osg::Depth();
((ive::Depth*)(attribute))->read(this);
}
else if(attributeID == IVEVIEWPORT){
attribute = new osg::Viewport();
((ive::Viewport*)(attribute))->read(this);