nn::tpl::CTR::GetTextureIndex Function

Syntax

s16 GetTextureIndex(
     const void * pTexPackage,
     const char * texPath
);

Arguments

Name Description
in pTexPackage Pointer to the header of a texture package file that has been loaded.
in texPath Path of the texture to search for (all lowercase, with no extension).

Return Values

Texture index. The function returns -1 if the texture could not be found.

Description

Gets the texture index.

Gets the index of the corresponding texture within the package based on the texture name's path. Make sure the texPath argument is a lowercase version of the src value that appeared in the configuration file when the texture was packaged.

Revision History

2010/08/16
Initial version.

CONFIDENTIAL