#ifndef XGFXIMAGE_H
#define XGFXIMAGE_H

#include "xasset.h"
#include "xcardmemory.h"
#include "xgfxtexture.h"
#include "xmaptype.h"
#include "xstring.h"

#include <QString>
#include <QVector>

class XGfxImage : public XAsset
{
public:
    explicit XGfxImage();
    ~XGfxImage();

    virtual void ParseData(XDataStream* aStream) override;
    virtual void Clear() override;

private:
    XMapType mMapType;
    XGfxTexture mTexture;
    quint8 mSemantic;
    XCardMemory mCardMemory;
    quint16 mWidth;
    quint16 mHeight;
    quint16 mDepth;
    quint8 mCategory;
    bool mDelayLoadPixels;
    QByteArray mPixels;
    quint32 mBaseSize;
    quint16 mStreamSlot;
    bool mStreaming;
    XString mName;
};

#endif // XGFXIMAGE_H
