Commit d7a02df8 authored by Jan Möbius's avatar Jan Möbius
Browse files

Only add textnodes if we have ftgl support

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10522 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 2c8d848f
......@@ -392,17 +392,19 @@ void SkeletonObject::showIndices(bool _bVisible)
}
// pSubMatNode->set_color(skeleton_->joint(i)->color());
ACG::SceneGraph::TextNode *pTextNode = NULL;
if(!getAdditionalNode(pTextNode, "SkeletonPlugin", nameTextNode.c_str()))
{
pTextNode = new ACG::SceneGraph::TextNode(
(OpenFlipper::Options::fontsDirStr() + OpenFlipper::Options::dirSeparator() + "freefont" + OpenFlipper::Options::dirSeparator() + "FreeSans.ttf").toStdString(),
pSubMatNode, nameTextNode.c_str(), ACG::SceneGraph::TextNode::SCREEN_ALIGNED);
addAdditionalNode(pTextNode, "SkeletonPlugin", nameTextNode.c_str());
}
pTextNode->setText(" " + nameJoint);
pTextNode->setSize(16);
pTextNode->multipassNodeSetActive(8, true);
#ifdef USE_FTGL
ACG::SceneGraph::TextNode *pTextNode = NULL;
if(!getAdditionalNode(pTextNode, "SkeletonPlugin", nameTextNode.c_str()))
{
pTextNode = new ACG::SceneGraph::TextNode(
(OpenFlipper::Options::fontsDirStr() + OpenFlipper::Options::dirSeparator() + "freefont" + OpenFlipper::Options:: dirSeparator() + "FreeSans.ttf").toStdString(),
pSubMatNode, nameTextNode.c_str(), ACG::SceneGraph::TextNode::SCREEN_ALIGNED);
addAdditionalNode(pTextNode, "SkeletonPlugin", nameTextNode.c_str());
}
pTextNode->setText(" " + nameJoint);
pTextNode->setSize(16);
pTextNode->multipassNodeSetActive(8, true);
#endif
}
//update the indices with the current animationhandle
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment