49 lines
865 B
C
49 lines
865 B
C
|
|
#ifndef GFXIMAGE_H
|
||
|
|
#define GFXIMAGE_H
|
||
|
|
|
||
|
|
#include "material.h"
|
||
|
|
|
||
|
|
struct GfxImageLoadDef;
|
||
|
|
union GfxTexture
|
||
|
|
{
|
||
|
|
D3DBaseTexture *basemap;
|
||
|
|
D3DTexture *map;
|
||
|
|
D3DVolumeTexture *volmap;
|
||
|
|
D3DCubeTexture *cubemap;
|
||
|
|
GfxImageLoadDef *loadDef;
|
||
|
|
};
|
||
|
|
|
||
|
|
struct GfxImageLoadDef
|
||
|
|
{
|
||
|
|
unsigned __int8 levelCount;
|
||
|
|
unsigned __int8 flags;
|
||
|
|
__int16 dimensions[3];
|
||
|
|
int format;
|
||
|
|
GfxTexture texture;
|
||
|
|
};
|
||
|
|
|
||
|
|
struct CardMemory
|
||
|
|
{
|
||
|
|
int platform[1];
|
||
|
|
};
|
||
|
|
|
||
|
|
struct GfxImage
|
||
|
|
{
|
||
|
|
MapType mapType;
|
||
|
|
GfxTexture texture;
|
||
|
|
unsigned __int8 semantic;
|
||
|
|
CardMemory cardMemory;
|
||
|
|
unsigned __int16 width;
|
||
|
|
unsigned __int16 height;
|
||
|
|
unsigned __int16 depth;
|
||
|
|
unsigned __int8 category;
|
||
|
|
bool delayLoadPixels;
|
||
|
|
unsigned __int8 *pixels;
|
||
|
|
unsigned int baseSize;
|
||
|
|
unsigned __int16 streamSlot;
|
||
|
|
bool streaming;
|
||
|
|
const char *name;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // GFXIMAGE_H
|