nn::tpl::CTR::CtrTextureInfo Structurestruct CtrTextureInfo
{
unsigned int filePathOffset;
unsigned int texDataSize;
unsigned int texDataOffset;
CtrTexFormat texFormat;
unsigned short width;
unsigned short height;
unsigned char mipLevel;
unsigned char type;
unsigned short cubeDir;
unsigned int bitmapSizeOffset;
unsigned int srcFileTime;
};
Data representing a single texture.
This data structure represents the structure of the data contained in a texture package. The size of this structure is intentionally set to 32 bytes.
| filePathOffset | unsigned int | Offset from the start of the file to the filename. | |
|---|---|---|---|
| texDataSize | unsigned int | Size of the image data. | |
| texDataOffset | unsigned int | Offset from the start of the data region to the image data. | |
| texFormat | CtrTexFormat |
Format | |
| width | unsigned short | Width | |
| height | unsigned short | Height | |
| mipLevel | unsigned char | Number of mipmap levels. | |
| type | unsigned char | 0: Cube / 1: 1D / 2: 2D | |
| cubeDir | unsigned short | 0: x / 1:-x / 2: y / 3: -y / 4: z / 5: -z | |
| bitmapSizeOffset | unsigned int | Offset to the array of image sizes for each mipmap. This will be replaced by 1/4th of the actual offset. | |
| srcFileTime | unsigned int | Timestamp of the source image file (used to check for changes). |
CONFIDENTIAL