Changed colour of anisotropic text in osgtexture2D example.
Removed the save test.osg call in osgkeyboard.
This commit is contained in:
parent
7aab621405
commit
fea6ad3101
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user