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 The path of the texture to search for.

Return Values

Texture index. The function returns -1 if the index value 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.

Revision History

2010/08/16
Initial version.

CONFIDENTIAL