Rules for UserData
Hi Andy,
A quick question or two about user data:
1. Is the user data shared between all plugins? If so, is there good etiquette regarding attaching data to an object?
2. Is user data saved with the model?
3. Must the user data be a real string (E.g. no nulls mid-string) or consist only of 7-bit characters?
4. What are the memory management rules? If I attach a string, I allocate it with myalloc, right? If I want to replace the string, is the old one automatically freed or do I have to nuke it? When done, does AC3D clean up the model when the file is closed?
Thanks!!
Ben
|