Added new GDAL plugin and osgbluemarble example to demonstrate how to create

PagedLOD'd databases using GDAL.
This commit is contained in:
Robert Osfield
2003-10-08 13:09:23 +00:00
parent 48fc18fe8b
commit e7c0d70747
15 changed files with 713 additions and 2 deletions

View File

@@ -17,6 +17,7 @@
#include "Drawable.h"
#include "DrawArrays.h"
#include "DrawArrayLengths.h"
#include "DrawElementsUByte.h"
#include "DrawElementsUShort.h"
#include "DrawElementsUInt.h"
@@ -45,6 +46,8 @@ void Geometry::write(DataOutputStream* out){
((ive::DrawArrays*)(getPrimitiveSet(i)))->write(out);
else if(dynamic_cast<osg::DrawArrayLengths*>(getPrimitiveSet(i)))
((ive::DrawArrayLengths*)(getPrimitiveSet(i)))->write(out);
else if(dynamic_cast<osg::DrawElementsUByte*>(getPrimitiveSet(i)))
((ive::DrawElementsUByte*)(getPrimitiveSet(i)))->write(out);
else if(dynamic_cast<osg::DrawElementsUShort*>(getPrimitiveSet(i)))
((ive::DrawElementsUShort*)(getPrimitiveSet(i)))->write(out);
else if(dynamic_cast<osg::DrawElementsUInt*>(getPrimitiveSet(i)))
@@ -180,6 +183,11 @@ void Geometry::read(DataInputStream* in){
((ive::DrawArrayLengths*)(prim))->read(in);
addPrimitiveSet(prim);
}
else if(primID==IVEDRAWELEMENTSUBYTE){
prim = new osg::DrawElementsUByte();
((ive::DrawElementsUByte*)(prim))->read(in);
addPrimitiveSet(prim);
}
else if(primID==IVEDRAWELEMENTSUSHORT){
prim = new osg::DrawElementsUShort();
((ive::DrawElementsUShort*)(prim))->read(in);