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

Method renderNodeName

Engine/source/gui/editor/guiShapeEdPreview.cpp:1634–1645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1632}
1633
1634void GuiShapeEdPreview::renderNodeName(S32 index, const ColorF& textColor) const
1635{
1636 if(index < 0 || index >= mModel->getShape()->nodes.size() || index >= mProjectedNodes.size())
1637 return;
1638 const TSShape::Node& node = mModel->getShape()->nodes[index];
1639 const String& nodeName = mModel->getShape()->getName( node.nameIndex );
1640
1641 Point2I pos( mProjectedNodes[index].x, mProjectedNodes[index].y + sNodeRectSize + 6 );
1642
1643 GFX->getDrawUtil()->setBitmapModulation( textColor );
1644 GFX->getDrawUtil()->drawText( mProfile->mFont, pos, nodeName.c_str() );
1645}
1646
1647void GuiShapeEdPreview::renderCollisionMeshes() const
1648{

Callers

nothing calls this directly

Calls 7

setBitmapModulationMethod · 0.80
getDrawUtilMethod · 0.80
sizeMethod · 0.45
getShapeMethod · 0.45
getNameMethod · 0.45
drawTextMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected