Ovis_Decoration_Transparency_Set()

Abstract

Specifies the transparency of the Ovis decoration.

Syntax

Ovis_Decoration_Transparency_Set (dec_ptr, transparency)
Argument Type Description
dec_ptr OvisT_Decoration * Specifies the decoration
transparency unsigned char Specifies the value of the transparency. A value of 0 means it is completely opaque and a value of 100 means it is completely transparent (invisible)

Return Type

OvisT_Compcode

OvisC_Compcode_Success if the transparency is set; OvisC_Compcode_Failure otherwise.

ovis_decoration.h

Details

This function specifies the transparency of the decoration. Transparency is a value from 0 to 100, with 0 being completely opaque and 100 being completely transparent (invisible).

Example

OvisT_3D_Cube 				* cube;

/* … cube created elsewhere */

Ovis_Decoration_Transparency_Set (cube, 50);

Errors

  • Decoration is NIL.
  • Invalid transparency value (<value>). Valid values are 0 through 100.

Reference

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com