nn::tpl::CTR::CtrTextureInfo Structure

Syntax

struct 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;
};

Description

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.

Member Variables

filePathOffset Offset from the start of the file to the filename.
texDataSize Size of the image data.
texDataOffset Offset from the start of the data region to the image data.
texFormat Format
width Width
height Height
mipLevel Number of mipmap levels.
type 0: Cube / 1: 1D / 2: 2D
cubeDir 0: x / 1:-x / 2: y / 3: -y / 4: z / 5: -z
bitmapSizeOffset Offset to the array of image sizes for each mipmap. This will be replaced by 1/4th of the actual offset.
srcFileTime Timestamp of the source image file (used to check for changes).

Revision History

2010/08/16
Initial version.

CONFIDENTIAL