classDLLPlugin 02
Constructor & Destructor Documentation¶
| 
 | 
| The constructor is where all the per-instance initialization is done for the texture. I say per-instance because within a given scene, a new copy of your plugin is created for every object it is applied to. This allows for time-based textures, for example, that are different on a per-instance basis. There are however certain things that should not be instanced, but rather declared static within your derived class. Anything that is constant between all instances should be done this way to preserve memory, and sometimes initialization time. The most common case of this is a noise table in a texture derived class, which could be declared as a member variable somewhere in your class something like this. The constructor would then initialize it only if it hasn't already been done. Saving time and memory. Definition at line 31 of file DLLPlugi.h. References Init(). Here is the call graph for this function: | 
| 
 | 
| 
 
 Definition at line 32 of file DLLPlugi.h. References Init(), and m_treeobject. Here is the call graph for this function: | 
| 
 | 
| Any allocations made by your plugin should be freed here. Definition at line 33 of file DLLPlugi.h. |