diff --git a/libs/xassets/xglyph.h b/libs/xassets/xglyph.h new file mode 100644 index 0000000..2d837e7 --- /dev/null +++ b/libs/xassets/xglyph.h @@ -0,0 +1,28 @@ +#ifndef XGLYPH_H +#define XGLYPH_H + +#include "xasset.h" + +class XGlyph : public XAsset +{ +public: + explicit XGlyph(); + ~XGlyph(); + + void Clear() override; + void ParseData(QDataStream *aStream) override; + +private: + quint16 mLetter; + char mX0; + char mY0; + quint8 mDx; + quint8 mPixelWidth; + quint8 mPixelHeight; + float mS0; + float mT0; + float mS1; + float mT1; +}; + +#endif // XGLYPH_H