Added support for texture object manager, which provides an automatic mechansim

for reusing deleted textures.
This commit is contained in:
Robert Osfield
2003-07-14 14:42:10 +00:00
parent 94d8e72ad3
commit 1b9d7d458a
18 changed files with 795 additions and 387 deletions

View File

@@ -46,30 +46,6 @@ osg::Node* createLabel(const osg::Vec3& pos, float size, const std::string& labe
return geode;
}
osg::Node* createLabel2(const osg::Vec3& pos, float size, const std::string& label)
{
osg::Geode* geode = new osg::Geode();
std::string timesFont("fonts/arial.ttf");
{
osgText::Text* text = new osgText::Text;
geode->addDrawable( text );
text->setFont(timesFont);
text->setPosition(pos);
text->setFontResolution(40,40);
text->setCharacterSize(size);
text->setCharacterSizeMode(osgText::Text::SCREEN_COORDS);
text->setAlignment(osgText::Text::CENTER_CENTER);
text->setAutoRotateToScreen(true);
text->setDrawMode(osgText::Text::TEXT_PIXMAP);
text->setText(label);
}
return geode;
}
osg::Node* createLabel3(const osg::Vec3& pos, float size, const std::string& label)
{