From fea6ad3101ebc2ee437f28f36aecdf6768a7f3d4 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 2 Apr 2003 11:57:23 +0000 Subject: [PATCH] Changed colour of anisotropic text in osgtexture2D example. Removed the save test.osg call in osgkeyboard. --- examples/osgkeyboard/osgkeyboard.cpp | 3 +-- examples/osgtexture2D/osgtexture2D.cpp | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/osgkeyboard/osgkeyboard.cpp b/examples/osgkeyboard/osgkeyboard.cpp index b9b254498..23010a147 100644 --- a/examples/osgkeyboard/osgkeyboard.cpp +++ b/examples/osgkeyboard/osgkeyboard.cpp @@ -421,8 +421,7 @@ int main( int argc, char **argv ) // attach the scene graph. viewer.setSceneData( keyboardModel->getScene() ); - osgDB::writeNodeFile(*keyboardModel->getScene(),"test.osg"); - + //osgDB::writeNodeFile(*keyboardModel->getScene(),"test.osg"); // create the windows and run the threads. viewer.realize(Producer::CameraGroup::ThreadPerCamera); diff --git a/examples/osgtexture2D/osgtexture2D.cpp b/examples/osgtexture2D/osgtexture2D.cpp index db659a27f..c7ba605bc 100644 --- a/examples/osgtexture2D/osgtexture2D.cpp +++ b/examples/osgtexture2D/osgtexture2D.cpp @@ -312,6 +312,7 @@ osg::Node* createAnisotripicWall(osg::BoundingBox& bb,const std::string& filenam text->setFont("fonts/arial.ttf"); text->setPosition(center); text->setCharacterSize(height*0.03f); + text->setColor(osg::Vec4(1.0f,0.0f,1.0f,1.0f)); text->setAlignment(osgText::Text::CENTER_CENTER); text->setAxisAlignment(osgText::Text::XY_PLANE);