diff --git a/examples/osgtext/osgtext.cpp b/examples/osgtext/osgtext.cpp index 778598f4f..4fefec7fc 100644 --- a/examples/osgtext/osgtext.cpp +++ b/examples/osgtext/osgtext.cpp @@ -705,6 +705,15 @@ int main(int argc, char** argv) viewer.setSceneData(text.get()); } + else if (arguments.read("--plain")) + { + osg::ref_ptr text = new osgText::Text; + text->setFont("fonts/times.ttf"); + text->setAxisAlignment(osgText::Text::XZ_PLANE); + text->setText("This is a plain test"); + + viewer.setSceneData(text.get()); + } else if (arguments.read("--mt", numThreads) || arguments.read("--mt")) { // construct a multi-threaded text updating test.