#ifndef XGFXCELL_H
#define XGFXCELL_H

#include "xasset.h"
#include "xgfxportal.h"
#include "xgfxaabbtree.h"

#include <QVector>
#include <QVector3D>

class XGfxCell : public XAsset
{
public:
    XGfxCell();
    ~XGfxCell();

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

private:
    QVector3D mMins;
    QVector3D mMaxs;

    int mAabbTreeCount;
    QVector<XGfxAabbTree> mAabbTree;

    int mPortalCount;
    QVector<XGfxPortal> mPortals;

    int mCullGroupCount;
    QVector<qint32> mCullGroups;

    quint8 mReflectionProbeCount;
    QVector<quint8> mReflectionProbes;
};

#endif // XGFXCELL_H
