From Andrew Bettison, "Attached are changes for src/osgPlugins/ive (version 2.4.0) that implement LineStipple read/write support for the ive file format."

This commit is contained in:
Robert Osfield
2008-06-19 14:14:20 +00:00
parent 37d81679b7
commit c3c727b822
4 changed files with 12 additions and 2 deletions

View File

@@ -32,6 +32,7 @@
#include "ShadeModel.h"
#include "Point.h"
#include "LineWidth.h"
#include "LineStipple.h"
#include "Texture1D.h"
#include "Texture2D.h"
#include "Texture3D.h"
@@ -762,8 +763,9 @@ void DataOutputStream::writeStateAttribute(const osg::StateAttribute* attribute)
else if(dynamic_cast<const osg::LineWidth*>(attribute)){
((ive::LineWidth*)(attribute))->write(this);
}
else if(dynamic_cast<const osg::LineWidth*>(attribute)){
((ive::LineWidth*)(attribute))->write(this);
// This is a LineStipple
else if(dynamic_cast<const osg::LineStipple*>(attribute)){
((ive::LineStipple*)(attribute))->write(this);
}
// This is a Texture1D
else if(dynamic_cast<const osg::Texture1D*>(attribute)){