Added --plain test to simply basic text testing

This commit is contained in:
Robert Osfield 2017-03-07 09:13:29 +00:00
parent 26878fa7ab
commit fee826412c

View File

@ -705,6 +705,15 @@ int main(int argc, char** argv)
viewer.setSceneData(text.get());
}
else if (arguments.read("--plain"))
{
osg::ref_ptr<osgText::Text> 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.