2025-08-17 13:14:17 -04:00
|
|
|
#ifndef XGFXIMAGE_H
|
|
|
|
|
#define XGFXIMAGE_H
|
|
|
|
|
|
|
|
|
|
#include "xasset.h"
|
|
|
|
|
#include "xcardmemory.h"
|
2025-09-03 13:01:39 -04:00
|
|
|
#include "xgfxtexture.h"
|
|
|
|
|
#include "xmaptype.h"
|
2025-09-07 12:36:08 -04:00
|
|
|
#include "xstring.h"
|
2025-09-03 13:01:39 -04:00
|
|
|
|
|
|
|
|
#include <QString>
|
2025-09-05 18:35:17 -04:00
|
|
|
#include <QVector>
|
2025-08-17 13:14:17 -04:00
|
|
|
|
|
|
|
|
class XGfxImage : public XAsset
|
|
|
|
|
{
|
2025-09-03 13:01:39 -04:00
|
|
|
public:
|
|
|
|
|
explicit XGfxImage();
|
2025-09-05 18:35:17 -04:00
|
|
|
~XGfxImage();
|
2025-09-03 13:01:39 -04:00
|
|
|
|
2025-09-10 21:58:26 -04:00
|
|
|
virtual void ParseData(XDataStream* aStream) override;
|
2025-09-03 13:01:39 -04:00
|
|
|
virtual void Clear() override;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
XMapType mMapType;
|
|
|
|
|
XGfxTexture mTexture;
|
|
|
|
|
quint8 mSemantic;
|
|
|
|
|
XCardMemory mCardMemory;
|
|
|
|
|
quint16 mWidth;
|
|
|
|
|
quint16 mHeight;
|
|
|
|
|
quint16 mDepth;
|
|
|
|
|
quint8 mCategory;
|
|
|
|
|
bool mDelayLoadPixels;
|
2025-09-07 12:36:08 -04:00
|
|
|
QByteArray mPixels;
|
|
|
|
|
quint32 mBaseSize;
|
2025-09-03 13:01:39 -04:00
|
|
|
quint16 mStreamSlot;
|
|
|
|
|
bool mStreaming;
|
2025-09-07 12:36:08 -04:00
|
|
|
XString mName;
|
2025-08-17 13:14:17 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // XGFXIMAGE_H
|