Added glSissor suppor via new osg::Scissor class.

Added .osg support for osg::Scissor.
Added .ive support for osg::Viewport and osg::Scissor.
This commit is contained in:
Robert Osfield
2005-07-22 09:31:19 +00:00
parent 37b4df3f71
commit 47651d3c8d
18 changed files with 439 additions and 0 deletions

View File

@@ -41,6 +41,8 @@
#include "ProxyNode.h"
#include "FrontFace.h"
#include "Program.h"
#include "Viewport.h"
#include "Scissor.h"
#include "Group.h"
#include "MatrixTransform.h"
@@ -814,6 +816,14 @@ osg::StateAttribute* DataInputStream::readStateAttribute()
attribute = new osg::BlendFunc();
((ive::BlendFunc*)(attribute))->read(this);
}
else if(attributeID == IVEVIEWPORT){
attribute = new osg::Viewport();
((ive::Viewport*)(attribute))->read(this);
}
else if(attributeID == IVESCISSOR){
attribute = new osg::Scissor();
((ive::Scissor*)(attribute))->read(this);
}
else if(attributeID == IVEMATERIAL){
attribute = new osg::Material();
((ive::Material*)(attribute))->read(this);