RwGetTextureName(RwTexture *texture, char *name, RwInt32 size);
Description
Retrieves the textures name.
Arguments
texture Pointer to the texture.
name Pointer to the string that will receive the texture name.
size Size of the string pointed to by name.
Return Value
The textures name. If there is an error or if the texture is not in a dictionary, NULL is returned. Errors can be checked for using RwGetError().
Comments
Only textures which are defined in dictionaries have names. Textures which are created using RwCreateTexture() or RwReadTexture() (rather than RwFindNamedTexture(), RwGetNamedTexture() or RwReadNamedTexture()) are not placed in dictionaries and hence have no name. RwGetNamedTexture() will return NULL for such textures and the contents of the string pointed to by name will be undefined.
See Also