nn::tpl::CTR::GetTexture Function
void * GetTexture(
s32 * mipLevel,
u32 * mipmapSize,
const void * pTexPackage,
const s16 texIndex
);
| Name | Description | |
|---|---|---|
| out | mipLevel | Number of mipmap levels. |
| out | mipmapSize | Data size (in bytes) of each mipmap (specify an array). |
| in | pTexPackage | Pointer to the header of a texture package file that has been loaded. |
| in | texIndex | Texture index. |
Gets the texture.
Returns a pointer to the corresponding texture within the package. The main image is also considered to have the maximum size of all the mipmap levels, so if the texture in question is found, the miplevel argument will always have a value of 1 or greater.
Specify valid pointers for mipLevel and mipmapSize. If a NULL pointer is specified, the process stops on an assertion in the Development build.
NULL pointer is specified for the mipLevel and mipmapSize arguments.CONFIDENTIAL