-
Notifications
You must be signed in to change notification settings - Fork 2
Render Texture
Pavle edited this page Oct 27, 2022
·
2 revisions
struct STextureMapHeader
{
unsigned int nNumSlices;
unsigned int nTotalSize;
unsigned int nFlag;
unsigned short nWidth;
unsigned short nHeight;
unsigned short nFormat;
unsigned char nNumMipLevels;
unsigned char nDefaultMipLevel;
unsigned char nInterpretAs;
unsigned char nDimensions;
unsigned char nMipInterpolation;
unsigned char __padding;
unsigned int nIADataSize;
unsigned int nIADataOffset;
};
struct SMipLevel
{
unsigned char data[dataSize];
};
struct SVector2
{
float x;
float y;
};
struct STilePolygonVertex
{
SVector2 posLerp;
SVector2 textUV;
};
struct IAData
{
unsigned int polygonVertexCount;
unsigned int altasWidth;
unsigned int altasHeight;
STilePolygonVertex tilePolygonVertices[polygonVertexCount * altasWidth * altasHeight];
};
struct RenderTexture
{
STextureMapHeader textureMapHeader;
SMipLevel mipLevels[textureMapHeader.nNumMipLevels];
IAData iaData;
};