Updated libs/xassets/xfont.cpp

This commit is contained in:
RedLine AI Agent 2025-09-05 21:26:12 +00:00
parent fdea13bf84
commit f7444171e3

34
libs/xassets/xfont.cpp Normal file
View File

@ -0,0 +1,34 @@
#include "xfont.h"
XFont::XFont()
: XAsset()
, mFontName("")
, mPixelHeight(0)
, mGlyphCount(0)
, mMaterial(new XMaterial())
, mGlowMaterial(new XMaterial())
, mGlyphs()
{
SetType(ASSET_TYPE_FONT);
SetName("Font");
}
XFont::~XFont()
{
}
void XFont::Clear()
{
mFontName = "";
mPixelHeight = 0;
mGlyphCount = 0;
delete mMaterial;
delete mGlowMaterial;
mGlyphs.clear();
}
void XFont::ParseData(QDataStream *aStream)
{
}