Lets face it guys...

For anyone going from Cscript to LiteC, the flags are a really big pain in the ass. Could one of you more experienced programmers shed some light on a very dim path?

HOW EXACTLY DO WE SET AND RESET AND DO WHATEVER... with the new flags?

Quote:


LC In C, C++, or Lite-C, a flag is set at runtime by OR-ing the flags parameter with the flag (material.flags |= TANGENT;); it is reset by AND-ing the flags parameter with the inverse flag (material.flags &= ~TANGENT;); and it is read by AND-ing the flags parameter with the flag and comparing the result with zero.
LC Entities have more than 32 flags and thus need several flag parameters in lite-C. The other parameters are flags2, eflags, emask, and smask. The parameter a flag belongs to is given in its Type field.





OH... that makes things much clearer... NOT!


"There is no problem that can't be solved with time and determination." -me
prenceofdarkness for instant messages on AIM.

Looking for a model designer
PLEASE, SEND ME A PRIVATE MESSAGE OR EMAIL IF YOU'RE INTERESTED.