From fee826412cc5423426511cd059bbd62b8b967ab4 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 7 Mar 2017 09:13:29 +0000 Subject: [PATCH] Added --plain test to simply basic text testing --- examples/osgtext/osgtext.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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.