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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user