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