XPlor/libs/assets/gfximage.h

63 lines
940 B
C
Raw Normal View History

2025-06-07 11:20:47 -04:00
#ifndef GFXIMAGE_H
#define GFXIMAGE_H
#include "material.h"
struct GfxImageLoadDef;
2025-07-10 00:04:52 -04:00
struct GfxTexture
2025-06-07 11:20:47 -04:00
{
2025-07-10 00:04:52 -04:00
qint32 baseMapPtr;
D3DBaseTexture *baseMap;
qint32 mapPtr;
2025-06-07 11:20:47 -04:00
D3DTexture *map;
2025-07-10 00:04:52 -04:00
qint32 volMapPtr;
D3DVolumeTexture *volMap;
qint32 cubeMapPtr;
D3DCubeTexture *cubeMap;
qint32 loadDefPtr;
2025-06-07 11:20:47 -04:00
GfxImageLoadDef *loadDef;
};
struct GfxImageLoadDef
{
2025-07-10 00:04:52 -04:00
quint8 levelCount;
quint8 flags;
quint16 dimensions[3];
2025-06-07 11:20:47 -04:00
int format;
GfxTexture texture;
};
struct CardMemory
{
int platform[1];
};
struct GfxImage
{
MapType mapType;
GfxTexture texture;
2025-07-10 00:04:52 -04:00
quint8 semantic;
2025-06-07 11:20:47 -04:00
CardMemory cardMemory;
2025-07-10 00:04:52 -04:00
quint16 width;
quint16 height;
quint16 depth;
quint8 category;
2025-06-07 11:20:47 -04:00
bool delayLoadPixels;
2025-07-10 00:04:52 -04:00
qint32 pixelsPtr;
quint8 *pixels;
2025-06-07 11:20:47 -04:00
unsigned int baseSize;
2025-07-10 00:04:52 -04:00
quint16 streamSlot;
2025-06-07 11:20:47 -04:00
bool streaming;
2025-07-10 00:04:52 -04:00
qint32 namePtr;
QString name;
2025-06-07 11:20:47 -04:00
};
#endif // GFXIMAGE_H