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

@@ -22,6 +22,7 @@
#include "BlendFunc.h"
#include "Material.h"
#include "CullFace.h"
#include "Depth.h"
#include "ClipPlane.h"
#include "PolygonOffset.h"
#include "PolygonMode.h"
@@ -642,6 +643,9 @@ void DataOutputStream::writeStateAttribute(const osg::StateAttribute* attribute)
else if(dynamic_cast<const osg::BlendFunc*>(attribute)){
((ive::BlendFunc*)(attribute))->write(this);
}
else if(dynamic_cast<const osg::Depth*>(attribute)){
((ive::Depth*)(attribute))->write(this);
}
else if(dynamic_cast<const osg::Viewport*>(attribute)){
((ive::Viewport*)(attribute))->write(this);
}