Archived

This topic is now archived and is closed to further replies.

Gary

Texture Name

Recommended Posts

If I want to change the name of a texture in memory can I just use something like:
        
Texture	= & PR_GlobalStruct.PR_Textures[TextureNumber];

PR_free(Texture->filename);
Texture->filename = (char *)PR_malloc(NewNameLength+1);
strcpy(Texture->filename, NewName);
  
Is there anything else I need to worry about? Gary Edited by - Gary on October 19, 2001 8:02:53 PM

Share this post


Link to post
Share on other sites
Should be PR_Globals.PR_Textures, but otherwise it should work fine.

Author of Power Render (http:/www.powerrender.com)

Share this post


Link to post
Share on other sites