From Frashid Lashkari, added support for PointSprites to .ive
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
#include "Viewport.h"
|
||||
#include "Scissor.h"
|
||||
#include "Image.h"
|
||||
#include "PointSprite.h"
|
||||
|
||||
#include "Group.h"
|
||||
#include "MatrixTransform.h"
|
||||
@@ -1026,6 +1027,10 @@ osg::StateAttribute* DataInputStream::readStateAttribute()
|
||||
attribute = new osg::Program();
|
||||
((ive::Program*)(attribute))->read(this);
|
||||
}
|
||||
else if(attributeID == IVEPOINTSPRITE){
|
||||
attribute = new osg::PointSprite();
|
||||
((ive::PointSprite*)(attribute))->read(this);
|
||||
}
|
||||
else{
|
||||
throw Exception("Unknown StateAttribute in StateSet::read()");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user