Added --plain test to simply basic text testing
This commit is contained in:
parent
26878fa7ab
commit
fee826412c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user