MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / renderNodeName

Method renderNodeName

Engine/source/gui/editor/guiShapeEdPreview.cpp:1705–1716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1703}
1704
1705void GuiShapeEdPreview::renderNodeName(S32 index, const LinearColorF& textColor) const
1706{
1707 if(index < 0 || index >= mModel->getShape()->nodes.size() || index >= mProjectedNodes.size())
1708 return;
1709 const TSShape::Node& node = mModel->getShape()->nodes[index];
1710 const String& nodeName = mModel->getShape()->getName( node.nameIndex );
1711
1712 Point2I pos( mProjectedNodes[index].x, mProjectedNodes[index].y + sNodeRectSize + 6 );
1713
1714 GFX->getDrawUtil()->setBitmapModulation( LinearColorF(textColor).toColorI());
1715 GFX->getDrawUtil()->drawText( mProfile->mFont, pos, nodeName.c_str() );
1716}
1717
1718void GuiShapeEdPreview::renderCollisionMeshes() const
1719{

Callers

nothing calls this directly

Calls 9

setBitmapModulationMethod · 0.80
getDrawUtilMethod · 0.80
toColorIMethod · 0.80
LinearColorFClass · 0.50
sizeMethod · 0.45
getShapeMethod · 0.45
getNameMethod · 0.45
drawTextMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected