nn::tpl::CTR::GetTextureIndex Function
s16 GetTextureIndex(
const void * pTexPackage,
const char * texPath
);
| 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). |
-1 if the texture could not be found. 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.
CONFIDENTIAL