Original Post
If I want to change the name of a texture in memory can I just use something like:
Is there anything else I need to worry about?
Gary
Edited by - Gary on October 19, 2001 8:02:53 PM
Texture = & PR_GlobalStruct.PR_Textures[TextureNumber]; PR_free(Texture->filename); Texture->filename = (char *)PR_malloc(NewNameLength+1); strcpy(Texture->filename, NewName); |