From Lilin Xiong, "I change ive plugin a little for osgText inout, so the ive plugin supports backdrop setting,

and Text3D, FadeText inout :

1. in DataInputStream.cpp, add 1286--1293 lines;
2. in Text.cpp, add some code for text's Backdrop setting;
3. in IveVersion.h, add line 39,  increase the VERSION to VERSION_028(line 41)
4. in ReadWrite.h,  add line 146,147
5. add file FadeText.h, FadeText.cpp, Text3D.h, Text3D.cpp."
This commit is contained in:
Robert Osfield
2008-07-01 18:37:13 +00:00
parent 82ed445a31
commit dba344feba
9 changed files with 370 additions and 5 deletions

View File

@@ -97,6 +97,9 @@
#include "HeightFieldLayer.h"
#include "CompositeLayer.h"
#include "FadeText.h"
#include "Text3D.h"
#include <osg/Endian>
#include <osg/Notify>
#include <osg/io_utils>
@@ -1279,7 +1282,15 @@ osg::Drawable* DataInputStream::readDrawable()
else if(drawableTypeID == IVETEXT){
drawable = new osgText::Text();
((Text*)(drawable))->read(this);
}
}
else if(drawableTypeID == IVEFADETEXT){
drawable = new osgText::FadeText();
((FadeText*)(drawable))->read(this);
}
else if(drawableTypeID == IVETEXT3D){
drawable = new osgText::Text3D();
((Text3D*)(drawable))->read(this);
}
else
throw Exception("Unknown drawable drawableTypeIDentification in Geode::read()");