RenderWare V2.1

Previous Page Index Next Page

char *

RwGetTextureName(RwTexture *texture, char *name, RwInt32 size);

Description

Retrieves the texture’s 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 texture’s 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

RwCreateTexture()

RwFindNamedTexture()

RwGetError()

RwGetNamedTexture()

RwReadNamedTexture()

RwReadTexture()