Ovis_Decoration_Destroy()
摘要
销毁 Ovis 装饰物。
语法
Ovis_Decoration_Destroy (dec_ptr)
| 参数 | 类型 | 说明 |
|---|---|---|
dec_ptr |
OvisT_Decoration * |
待销毁的装饰物 |
返回类型
void
无返回值。
头文件
ovis_decoration.h
详情
此函数销毁 Ovis 装饰物。如果在创建装饰物时指定了与该对象关联的 destroy_proc 函数,或之后通过 Ovis_Decoration_Destroy_Proc_Set() 进行了指定,则会调用该函数。
示例
OvisT_3D_Sphere * sphere;
/* … sphere created elsewhere */
Ovis_Decoration_Destroy (sphere);
错误
- 装饰物为 NIL。
参考
- 使用
Ovis_Decoration_Destroy_Proc_Set()指定在销毁某个装饰物时要调用的函数。