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

@@ -31,6 +31,7 @@
#include "ShadeModel.h"
#include "Point.h"
#include "LineWidth.h"
#include "LineStipple.h"
#include "Texture1D.h"
#include "Texture2D.h"
#include "Texture3D.h"
@@ -1178,6 +1179,10 @@ osg::StateAttribute* DataInputStream::readStateAttribute()
attribute = new osg::Multisample();
((ive::Multisample*)(attribute))->read(this);
}
else if(attributeID == IVELINESTIPPLE){
attribute = new osg::LineStipple();
((ive::LineStipple*)(attribute))->read(this);
}
else if(attributeID == IVESTENCIL){
attribute = new osg::Stencil();
((ive::Stencil*)(attribute))->read(this);