Add offscreen text rendering.
This commit is contained in:
parent
c63138c455
commit
076e32b1d6
17 changed files with 156 additions and 101 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue