Added support for osg::LineWidth into ive format

This commit is contained in:
Robert Osfield
2004-02-18 21:40:18 +00:00
parent dea22aeb8e
commit b050a9877b
7 changed files with 91 additions and 0 deletions

View File

@@ -22,6 +22,7 @@
#include "PolygonOffset.h"
#include "ShadeModel.h"
#include "Point.h"
#include "LineWidth.h"
#include "Texture1D.h"
#include "Texture2D.h"
#include "TextureCubeMap.h"
@@ -630,6 +631,10 @@ osg::StateAttribute* DataInputStream::readStateAttribute()
attribute = new osg::Point();
((ive::Point*)(attribute))->read(this);
}
else if(attributeID == IVELINEWIDTH){
attribute = new osg::LineWidth();
((ive::LineWidth*)(attribute))->read(this);
}
else if(attributeID == IVETEXTURE1D){
attribute = new osg::Texture1D();
((ive::Texture1D*)(attribute))->read(this);