查看单个帖子
旧 2009-05-06, 05:20 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】lost with odgimaterialcolor

lost with odgimaterialcolor
lost with odgimaterialcolor
hi,
any guidelines using odgimaterialcolor?
i create a odcmentitycolor to wich i set color values (setrgb).
now, i want to set odgimaterialcolor with that odcmentitycolor (as i read in the help files it needs it), but i don't know how..
thanks in advance,
israel

odgimaterialcolor::color() method is overloaded:
code:
odcmentitycolor& odgimaterialcolor::color();
const odcmentitycolor& odgimaterialcolor::color() const;, so you can use it to setup your odcmentitycolor to odgimaterialcolor:
code:
odcmentitycolor ecolor;
ecolor.setcolor(0xffffffff);
odgimaterialcolor mcolor;
mcolor.setmethod(odgimaterialcolor::koverride);
thanks a lot!
sometimes you think it is going to be 'the hard' way and the simple solution is the right one.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)