高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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.
|