nn::tpl::CTR::GetTexture Function

Syntax

void * GetTexture(
     s32 * mipLevel,
     u32 * mipmapSize,
     const void * pTexPackage,
     const s16 texIndex
);

Arguments

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.

Return Values

Pointer to the start of the texture. The function returns 0 if the index value could not be found.

Description

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.

Revision History

2010/08/16
Initial version.

CONFIDENTIAL