Ovis_Decoration_Destroy()
Abstract
Destroys the Ovis decoration.
Syntax
Ovis_Decoration_Destroy (dec_ptr)
| Argument | Type | Description |
|---|---|---|
dec_ptr |
OvisT_Decoration * |
Decoration to be destroyed |
Return Type
void
No return value.
Header
ovis_decoration.h
Details
This function destroys the Ovis decoration. The function destroy_proc associated with the object is called if it was specified when the decoration was created or with Ovis_Decoration_Destroy_Proc_Set().
Example
OvisT_3D_Sphere * sphere;
/* … sphere created elsewhere */
Ovis_Decoration_Destroy (sphere);
Errors
- Decoration is NIL.
Reference
- Use
Ovis_Decoration_Destroy_Proc_Set()to specify a function to be invoked when a given decoration is being destroyed.