RenderWare V2.1

Previous Page Index Next Page

RwBool

RwDestroyTexture(RwTexture *texture);

Description

Destroys the texture (and its raster).

Arguments

texture Pointer to the texture.

Return Value

TRUE if successful, and FALSE otherwise.

Comments

Textures which are still referenced by materials must not be destroyed. Remove the references to a texture with RwSetMaterialTexture() or RwSetPolygonTexture() before destroying the texture.

If the texture is defined in a dictionary, this function removes it from that dictionary.

See Also

RwCreateTexture()

RwFindNamedTexture()

RwGetNamedTexture()

RwReadNamedTexture()

RwReadShape()

RwReadTexture()

RwSetMaterialTexture()

RwSetPolygonTexture()

RwSetTextureRaster()

RwTextureDictEnd()