Update material and image handling structures
This commit is contained in:
parent
5ea8c5f09a
commit
ed30f6b861
@ -1,9 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef XDMATERIAL_H
|
#ifndef XDMATERIAL_H
|
||||||
#define XDMATERIAL_H
|
#define XDMATERIAL_H
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
#ifndef XGAMEWORLDMP_H
|
#ifndef XGAMEWORLDMP_H
|
||||||
#define XGAMEWORLDMP_H
|
#define XGAMEWORLDMP_H
|
||||||
|
|
||||||
|
|||||||
@ -1,31 +1,41 @@
|
|||||||
#ifndef XGFXIMAGE_H
|
#ifndef XGFXIMAGE_H
|
||||||
#define XGFXIMAGE_H
|
#define XGFXIMAGE_H
|
||||||
|
|
||||||
#include "material.h"
|
|
||||||
#include "xasset.h"
|
#include "xasset.h"
|
||||||
#include "xcardmemory.h"
|
#include "xcardmemory.h"
|
||||||
|
#include "xgfxtexture.h"
|
||||||
|
#include "xmaptype.h"
|
||||||
|
|
||||||
|
#include <QString>
|
||||||
|
|
||||||
class XGfxImage : public XAsset
|
class XGfxImage : public XAsset
|
||||||
{
|
{
|
||||||
MapType mapType;
|
public:
|
||||||
XGfxTexture texture;
|
explicit XGfxImage();
|
||||||
quint8 semantic;
|
|
||||||
XCardMemory cardMemory;
|
|
||||||
quint16 width;
|
|
||||||
quint16 height;
|
|
||||||
quint16 depth;
|
|
||||||
quint8 category;
|
|
||||||
bool delayLoadPixels;
|
|
||||||
|
|
||||||
qint32 pixelsPtr;
|
virtual void ParseData(QDataStream* aStream) override;
|
||||||
quint8 *pixels;
|
virtual void Clear() override;
|
||||||
|
|
||||||
unsigned int baseSize;
|
private:
|
||||||
quint16 streamSlot;
|
XMapType mMapType;
|
||||||
bool streaming;
|
XGfxTexture mTexture;
|
||||||
|
quint8 mSemantic;
|
||||||
|
XCardMemory mCardMemory;
|
||||||
|
quint16 mWidth;
|
||||||
|
quint16 mHeight;
|
||||||
|
quint16 mDepth;
|
||||||
|
quint8 mCategory;
|
||||||
|
bool mDelayLoadPixels;
|
||||||
|
|
||||||
qint32 namePtr;
|
qint32 mPixelsPtr;
|
||||||
QString name;
|
quint8 *mPixels;
|
||||||
|
|
||||||
|
unsigned int mBaseSize;
|
||||||
|
quint16 mStreamSlot;
|
||||||
|
bool mStreaming;
|
||||||
|
|
||||||
|
qint32 mNamePtr;
|
||||||
|
QString mName;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // XGFXIMAGE_H
|
#endif // XGFXIMAGE_H
|
||||||
|
|||||||
@ -3,6 +3,10 @@
|
|||||||
|
|
||||||
#include "xasset.h"
|
#include "xasset.h"
|
||||||
|
|
||||||
|
#include <QVector>
|
||||||
|
|
||||||
|
class XGfxTexture;
|
||||||
|
|
||||||
class XGfxImageLoadDef : public XAsset
|
class XGfxImageLoadDef : public XAsset
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user