RenderWare V2.1

Previous Page Index Next Page

RwTexture *

RwReadTexture(char *filename);

Description

Reads a texture from the specified file.

Arguments

filename Name of the texture file.

Return Value

A pointer to the new texture if successful, and NULL otherwise.

Comments

If filename is not a full path, the library searches for the specified file in all directories on its shape path.

Unlike RwReadNamedTexture(), the texture read from disk will not be placed in the current texture dictionary.

See Also

RwCreateTexture()

RwDestroyTexture()

RwFindNamedTexture()

RwGetNamedTexture()

RwGetShapePath()

RwGetTextureRaster()

RwReadNamedTexture()

RwReadRaster()

RwSetShapePath()

RwSetTextureRaster()