Skip to main content
GameDev.net gamedev.net
🔒 Locked

Texture Name

Started by Gary Oct 19, 2001 at 6:58 PM 1 replies 550+ views
Original Post
Gary
Gary
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
ChrisE
ChrisE
Should be PR_Globals.PR_Textures, but otherwise it should work fine.

Author of Power Render (http:/www.powerrender.com)
Author of Power Render (http:/www.powerrender.com)
Gary
Gary
Oops.. That was a typo =)


Thanks Chris

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.