Add offscreen text rendering.

This commit is contained in:
jmsgrogan 2023-01-12 10:58:43 +00:00
parent c63138c455
commit 076e32b1d6
17 changed files with 156 additions and 101 deletions

View file

@ -79,6 +79,15 @@ void TextNode::setContent(const std::string& content)
}
}
void TextNode::setFont(const FontItem& font)
{
if (mTextData.mFont != font)
{
mTextData.mFont = font;
mContentIsDirty = true;
}
}
SceneItem* TextNode::getSceneItem(std::size_t idx) const
{
if (idx == 0)