From f7444171e3df61dcb4ef3706bd90aab2d447dc52 Mon Sep 17 00:00:00 2001 From: RedLine AI Agent Date: Fri, 5 Sep 2025 21:26:12 +0000 Subject: [PATCH] Updated libs/xassets/xfont.cpp --- libs/xassets/xfont.cpp | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 libs/xassets/xfont.cpp diff --git a/libs/xassets/xfont.cpp b/libs/xassets/xfont.cpp new file mode 100644 index 0000000..b10d113 --- /dev/null +++ b/libs/xassets/xfont.cpp @@ -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) +{ + +}